12345678910111213141516171819202122232425262728293031323334 |
- #!/bin/bash
- #=================================================
- # GENERIC STARTING
- #=================================================
- # IMPORT GENERIC HELPERS
- #=================================================
- source _common.sh
- source /usr/share/yunohost/helpers
- #=================================================
- # LOAD SETTINGS
- #=================================================
- app=$YNH_APP_INSTANCE_NAME
- domain=$(ynh_app_setting_get $app domain)
- path_url=$(ynh_app_setting_get $app path)
- is_public=$(ynh_app_setting_get $app is_public)
- final_path=$(ynh_app_setting_get $app final_path)
- server_name=$(ynh_app_setting_get $app server_name)
- #=================================================
- # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
- #=================================================
- ynh_backup_before_upgrade
- ynh_clean_setup () {
- ynh_restore_upgradebackup
- }
- # Exit if an error occurs during the execution of the script
- ynh_abort_if_errors
|