[mod] upgrade, disable auto-backup/restore

This commit is contained in:
pitchum
2018-06-14 11:02:24 +02:00
committed by pitchum
parent abd0145d4e
commit 432569620c

View File

@@ -36,23 +36,23 @@ if [ -f /etc/php5/fpm/pool.d/vpnadmin.conf ]; then
fi fi
test -d /var/www/vpnadmin && mv /var/www/vpnadmin /var/www/${app} test -d /var/www/vpnadmin && mv /var/www/vpnadmin /var/www/${app}
# Versions known to have a buggy backup script ## Versions known to have a buggy backup script
buggy_versions="1.0.0 1.0.1 1.1.0" #buggy_versions="1.0.0 1.0.1 1.1.0"
curr_version=$(read_manifest version) #curr_version=$(read_manifest version)
if echo $buggy_versions | grep -w $curr_version > /dev/null; then #if echo $buggy_versions | grep -w $curr_version > /dev/null; then
echo "Your current version of ${app} is very old: ${curr_version}. Please ignore the next warning." >&2 # echo "Your current version of ${app} is very old: ${curr_version}. Please ignore the next warning." >&2
fi #fi
#
#================================================= ##=================================================
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP ## BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
#================================================= ##=================================================
#
ynh_backup_before_upgrade #ynh_backup_before_upgrade
ynh_clean_setup () { #ynh_clean_setup () {
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
#================================================= #=================================================
# DO UPGRADE # DO UPGRADE