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-05 23:33:24 +01:00 committed by GitHub
parent 1a0c0ab6e1
commit b2c43a6c2a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,10 +21,6 @@ touch /var/log/$app/$app.log
chown -R $app:www-data /var/log/$app/ 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 # 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_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" chown -R $app:www-data "$install_dir"
set -a; source "$install_dir/.env"; set +a
pushd $install_dir pushd $install_dir
mkdir -p .venv 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 PIPENV_VENV_IN_PROJECT="enabled" PIPENV_SKIP_LOCK=true ynh_exec_warn_less python3 -m pipenv install fittrackee==$fittrackee_version python-dotenv