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:
parent
da810a7d34
commit
2e5044205a
1 changed files with 1 additions and 10 deletions
|
@ -22,16 +22,6 @@ admin_mail=$(ynh_user_get_info --username=$admin --key=mail)
|
|||
|
||||
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
|
||||
#=================================================
|
||||
|
@ -57,6 +47,7 @@ chown -R $app: "$install_dir"
|
|||
#=================================================
|
||||
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"
|
||||
chmod 600 $install_dir/.env
|
||||
chown $app: "$install_dir/.env"
|
||||
|
|
Loading…
Reference in a new issue