mirror of
https://github.com/YunoHost-Apps/webmin_ynh.git
synced 2024-09-03 20:36:08 +02:00
Fix [YEP-2.4] ynh_abort_if_errors is missing
This commit is contained in:
parent
19d791cd5c
commit
d674cf747f
1 changed files with 15 additions and 1 deletions
|
@ -21,6 +21,20 @@ path_url=$(ynh_app_setting_get --app=$app --key=path)
|
|||
admin=$(ynh_app_setting_get --app=$app --key=admin)
|
||||
port=$(ynh_app_setting_get --app=$app --key=port)
|
||||
|
||||
#=================================================
|
||||
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
|
||||
#=================================================
|
||||
ynh_script_progression --message="Backing up the app before upgrading (may take a while)..."
|
||||
|
||||
# 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
|
||||
|
||||
#=================================================
|
||||
# CHECK THE PATH
|
||||
#=================================================
|
||||
|
@ -53,7 +67,7 @@ ynh_script_progression --message="Upgrading dependencies..."
|
|||
ynh_install_app_dependencies $pkg_dependencies
|
||||
|
||||
# Install Webmin
|
||||
ynh_backup_if_checksum_is_different "/etc/webmin/miniserv.conf"
|
||||
ynh_backup_if_checksum_is_different --file="/etc/webmin/miniserv.conf"
|
||||
ynh_install_extra_app_dependencies --repo="deb https://download.webmin.com/download/repository sarge contrib" --package="webmin" --key="https://download.webmin.com/jcameron-key.asc"
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue