1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/fittrackee_ynh.git synced 2024-09-03 18:36:16 +02:00

Update upgrade

This commit is contained in:
Thomas 2023-09-15 08:57:02 +02:00 committed by GitHub
parent da810a7d34
commit 2e5044205a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,16 +22,6 @@ admin_mail=$(ynh_user_get_info --username=$admin --key=mail)
upgrade_type=$(ynh_check_app_version_changed) upgrade_type=$(ynh_check_app_version_changed)
#=================================================
# ENSURE DOWNWARD COMPATIBILITY
#=================================================
# If redis_db doesn't exist, create it
if [ -z $redis_db ]; then
redis_db=$(ynh_redis_get_free_db)
ynh_app_setting_set --app="$app" --key=redis_db --value="$redis_db"
fi
#================================================= #=================================================
# STANDARD UPGRADE STEPS # STANDARD UPGRADE STEPS
#================================================= #=================================================
@ -57,6 +47,7 @@ chown -R $app: "$install_dir"
#================================================= #=================================================
ynh_script_progression --message="Installing service script..." --weight=1 ynh_script_progression --message="Installing service script..." --weight=1
redis_db=$(ynh_redis_get_free_db)
ynh_add_config --template="../conf/.env.production" --destination="$install_dir/.env" ynh_add_config --template="../conf/.env.production" --destination="$install_dir/.env"
chmod 600 $install_dir/.env chmod 600 $install_dir/.env
chown $app: "$install_dir/.env" chown $app: "$install_dir/.env"