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:
parent
82b354400d
commit
f206526487
1 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue