From 825afb2a09b805e153fa1d858afa0d0a343383b1 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Thu, 2 Mar 2023 13:15:03 +0100 Subject: [PATCH] Update install --- scripts/install | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/scripts/install b/scripts/install index 47e03b4..8e63d9f 100755 --- a/scripts/install +++ b/scripts/install @@ -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 #=================================================