1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/weblate_ynh.git synced 2024-10-01 13:35:04 +02:00

move pip code after user creation and make sure we want to install Weblate 2.16

This commit is contained in:
Jean-Baptiste Holcroft 2017-09-14 14:24:06 +02:00
parent 82b354400d
commit f206526487

View file

@ -93,14 +93,6 @@ ynh_app_setting_set $app final_path $final_path
# Download, check integrity, uncompress and patch the source from app.src # Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source "$final_path" 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 # NGINX CONFIGURATION
#================================================= #=================================================
@ -115,6 +107,14 @@ ynh_add_nginx_config
# Create a system user # Create a system user
ynh_system_user_create $app 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 # SPECIFIC SETUP
#================================================= #=================================================