1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/webmin_ynh.git synced 2024-09-03 20:36:08 +02:00
This commit is contained in:
ericgaspar 2020-10-10 15:04:33 +02:00
parent 160f42b4ae
commit 9e9c78137f
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 14 additions and 9 deletions

View file

@ -18,5 +18,3 @@ pkg_dependencies="perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runt
#================================================= #=================================================
# FUTURE OFFICIAL HELPERS # FUTURE OFFICIAL HELPERS
#================================================= #=================================================

View file

@ -28,11 +28,18 @@ port=$(ynh_app_setting_get --app=$app --key=port)
upgrade_type=$(ynh_check_app_version_changed) upgrade_type=$(ynh_check_app_version_changed)
#================================================= #=================================================
# CHECK THE PATH # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
#================================================= #=================================================
ynh_script_progression --message="Backing up the app before upgrading (may take a while)..." --weight=1
# Normalize the URL path syntax # Backup the current version of the app
path_url=$(ynh_normalize_url_path $path_url) 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
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION