mirror of
https://github.com/YunoHost-Apps/fittrackee_ynh.git
synced 2024-09-03 18:36:16 +02:00
Update install
This commit is contained in:
parent
b89d710d67
commit
825afb2a09
1 changed files with 4 additions and 9 deletions
|
@ -69,11 +69,6 @@ chown $app:www-data "$install_dir/.env"
|
|||
|
||||
set -a; source "$install_dir/.env"; set +a
|
||||
|
||||
mkdir "$install_dir/venv"
|
||||
python3 -m venv "$install_dir/venv"
|
||||
source $install_dir/.env
|
||||
|
||||
|
||||
#=================================================
|
||||
# INITIALIZE DATABASE
|
||||
#=================================================
|
||||
|
@ -97,10 +92,6 @@ ynh_add_nginx_config
|
|||
#=================================================
|
||||
ynh_script_progression --message="Configuring a systemd service..." --weight=1
|
||||
|
||||
# Create a dedicated systemd config
|
||||
ynh_add_systemd_config --service="${app}" --template="${app}.service"
|
||||
ynh_add_systemd_config --service="${app}_workers" --template="${app}_workers.service"
|
||||
|
||||
mkdir /etc/systemd/system/${app}.service.d/
|
||||
chown $app:www-data /etc/systemd/system/${app}.service.d/
|
||||
|
||||
|
@ -115,6 +106,10 @@ ynh_add_config --template="../conf/variables_fittrackee_workers.conf" --destinat
|
|||
chmod 600 /etc/systemd/system/${app}_workers.service.d/variables.conf
|
||||
chown $app:www-data "/etc/systemd/system/${app}_workers.service.d/variables.conf"
|
||||
|
||||
# Create a dedicated systemd config
|
||||
ynh_add_systemd_config --service="${app}" --template="${app}.service"
|
||||
ynh_add_systemd_config --service="${app}_workers" --template="${app}_workers.service"
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALIZATION
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue