mirror of
https://github.com/YunoHost-Apps/mattermost_ynh.git
synced 2024-09-03 19:36:29 +02:00
Update upgrade
This commit is contained in:
parent
b08bc0d1d7
commit
d6a095f247
1 changed files with 13 additions and 13 deletions
|
@ -51,16 +51,16 @@ upgrade_type=$(ynh_check_app_version_changed)
|
||||||
#=================================================
|
#=================================================
|
||||||
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
|
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Backing up the app before upgrading (may take a while)..." --weight=1
|
# ynh_script_progression --message="Backing up the app before upgrading (may take a while)..." --weight=1
|
||||||
|
|
||||||
# Backup the current version of the app
|
# # Backup the current version of the app
|
||||||
ynh_backup_before_upgrade
|
# ynh_backup_before_upgrade
|
||||||
ynh_clean_setup () {
|
# ynh_clean_setup () {
|
||||||
# Restore it if the upgrade fails
|
# # Restore it if the upgrade fails
|
||||||
ynh_restore_upgradebackup
|
# ynh_restore_upgradebackup
|
||||||
}
|
# }
|
||||||
# Exit if an error occurs during the execution of the script
|
# # Exit if an error occurs during the execution of the script
|
||||||
ynh_abort_if_errors
|
# ynh_abort_if_errors
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# ENSURE DOWNWARD COMPATIBILITY
|
# ENSURE DOWNWARD COMPATIBILITY
|
||||||
|
@ -84,10 +84,10 @@ if [ -z "$version" ]; then
|
||||||
ynh_app_setting_set --app=$app --key=version --value=$version
|
ynh_app_setting_set --app=$app --key=version --value=$version
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# if [ -z "$db_name" ]; then
|
if [ -z "$db_name" ]; then
|
||||||
# db_name="$app"
|
db_name="$app"
|
||||||
# ynh_app_setting_set --app=$app --key=db_name --value=$db_name
|
ynh_app_setting_set --app=$app --key=db_name --value=$db_name
|
||||||
# fi
|
fi
|
||||||
|
|
||||||
# if [ -z "$db_pwd" ]; then
|
# if [ -z "$db_pwd" ]; then
|
||||||
# db_pwd=$(ynh_string_random --length=24)
|
# db_pwd=$(ynh_string_random --length=24)
|
||||||
|
|
Loading…
Add table
Reference in a new issue