From b2c43a6c2a9edd3a66808dd473cf9b8246cdb016 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Sun, 5 Mar 2023 23:33:24 +0100 Subject: [PATCH] Update install --- scripts/install | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 9a9c3e9..12bdd8c 100755 --- a/scripts/install +++ b/scripts/install @@ -21,10 +21,6 @@ touch /var/log/$app/$app.log chown -R $app:www-data /var/log/$app/ -ynh_add_config --template="../conf/.env.production" --destination="$install_dir/.env" -chmod 600 $install_dir/.env - -set -a; source "$install_dir/.env"; set +a #================================================= # INSTALL DEPENDENCIES @@ -47,8 +43,16 @@ ynh_app_setting_set --app=$app --key=key --value=$key ynh_script_progression --message="Setting up source files..." --weight=64 +ynh_add_config --template="../conf/.env.production" --destination="$install_dir/.env" +chmod 600 $install_dir/.env + + + chown -R $app:www-data "$install_dir" + +set -a; source "$install_dir/.env"; set +a + pushd $install_dir mkdir -p .venv PIPENV_VENV_IN_PROJECT="enabled" PIPENV_SKIP_LOCK=true ynh_exec_warn_less python3 -m pipenv install fittrackee==$fittrackee_version python-dotenv