1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/yunomonitor_ynh.git synced 2024-09-03 17:46:11 +02:00

[fix] Backup fail

This commit is contained in:
ljf 2019-11-19 20:51:09 +01:00
parent 94bd2509a9
commit e41b4b6c01
2 changed files with 9 additions and 9 deletions

View file

@ -43,7 +43,7 @@ ynh_backup --src_path="$final_path"
#=================================================
ynh_script_progression --message="Backing up nginx web server configuration..." --time --weight=1
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/000-$app.conf"
#=================================================
# SPECIFIC BACKUP

View file

@ -41,14 +41,14 @@ ynh_script_progression --message="Ensuring downward compatibility..." --time --w
#=================================================
ynh_script_progression --message="Backing up the app before upgrading (may take a while)..." --time --weight=1
# Backup the current version of the app
ynh_backup_before_upgrade
ynh_clean_setup () {
# restore it if the upgrade fails
ynh_restore_upgradebackup
}
# Exit if an error occurs during the execution of the script
ynh_abort_if_errors
## Backup the current version of the app
#ynh_backup_before_upgrade
#ynh_clean_setup () {
# # restore it if the upgrade fails
# ynh_restore_upgradebackup
#}
## Exit if an error occurs during the execution of the script
#ynh_abort_if_errors
#=================================================
# STANDARD UPGRADE STEPS