1
0
Fork 0
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:
Thomas 2023-03-02 13:15:03 +01:00 committed by GitHub
parent b89d710d67
commit 825afb2a09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
#=================================================