From f206526487b1c9b246718de5f046190321ec086e Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Holcroft Date: Thu, 14 Sep 2017 14:24:06 +0200 Subject: [PATCH] move pip code after user creation and make sure we want to install Weblate 2.16 --- scripts/install | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/install b/scripts/install index 8a1e24d..2777dd8 100755 --- a/scripts/install +++ b/scripts/install @@ -93,14 +93,6 @@ ynh_app_setting_set $app final_path $final_path # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source "$final_path" -#================================================= -# PIP INSTALLATION -#================================================= -sudo su $app -c "virtualenv ${final_path}/venv" -sudo source ${final_path}/venv/bin/activate -sudo pip install Weblate -sudo pip install pytz python-bidi PyYaML Babel pyuca pylibravatar pydns - #================================================= # NGINX CONFIGURATION #================================================= @@ -115,6 +107,14 @@ ynh_add_nginx_config # Create a system user ynh_system_user_create $app +#================================================= +# PIP INSTALLATION +#================================================= +sudo su $app -c "virtualenv ${final_path}/venv" +sudo source ${final_path}/venv/bin/activate +sudo pip install Weblate==2.16 +sudo pip install pytz python-bidi PyYaML Babel pyuca pylibravatar pydns + #================================================= # SPECIFIC SETUP #=================================================