1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wordpress_ynh.git synced 2024-09-03 20:36:10 +02:00

Update to last standard

This commit is contained in:
maniack 2019-12-09 18:12:34 +01:00
parent 10fefeeb1e
commit e5ec9b4a42
2 changed files with 17 additions and 2 deletions

View file

@ -17,7 +17,6 @@
upgrade=1 from_commit=cbb74263e33deb0ec36f99886a2f773e36d40fd9
backup_restore=1
multi_instance=1
incorrect_path=1
port_already_use=0
change_url=1
;; Test avec multisite
@ -37,7 +36,6 @@
upgrade=1
backup_restore=1
multi_instance=1
incorrect_path=0
port_already_use=0
change_url=0
;;; Levels

View file

@ -35,6 +35,23 @@ then
ynh_die --message="https://codex.wordpress.org/Moving_WordPress#Moving_WordPress_Multisite"
fi
#=================================================
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
#=================================================
ynh_script_progression --message="Backing up the app before changing its url (may take a while)..." --weight=5
# Backup the current version of the app
ynh_backup_before_upgrade
ynh_clean_setup () {
# Remove the new domain config file, the remove script won't do it as it doesn't know yet its location.
ynh_secure_remove --file="/etc/nginx/conf.d/$new_domain.d/$app.conf"
# restore it if the upgrade fails
ynh_restore_upgradebackup
}
# Exit if an error occurs during the execution of the script
ynh_abort_if_errors
#=================================================
# ACTIVATE MAINTENANCE MODE
#=================================================