diff --git a/scripts/remove b/scripts/remove index 52cd1fa..668c7c6 100755 --- a/scripts/remove +++ b/scripts/remove @@ -9,14 +9,6 @@ source _common.sh source /usr/share/yunohost/helpers -#================================================= -# LOAD SETTINGS -#================================================= -#REMOVEME? ynh_script_progression --message="Loading installation settings..." - -#REMOVEME? app=$YNH_APP_INSTANCE_NAME -export install_dir="/opt/yunohost/${app}" - #================================================= # REMOVE LOGROTATE CONFIGURATION #================================================= @@ -25,14 +17,6 @@ ynh_script_progression --message="Removing logrotate configuration..." # Remove the app-specific logrotate config ynh_remove_logrotate -#================================================= -# REMOVE DEPENDENCIES -#================================================= -#REMOVEME? ynh_script_progression --message="Removing dependencies..." --weight=4 - -# Remove metapackage and its dependencies -#REMOVEME? ynh_remove_app_dependencies - #================================================= # SPECIFIC REMOVE #================================================= diff --git a/scripts/restore b/scripts/restore index 4c6d5d0..22c00ab 100755 --- a/scripts/restore +++ b/scripts/restore @@ -10,27 +10,6 @@ source ../settings/scripts/_common.sh source /usr/share/yunohost/helpers -#================================================= -# MANAGE SCRIPT FAILURE -#================================================= - -#REMOVEME? ynh_clean_setup () { - ynh_clean_check_starting -} -# Exit if an error occurs during the execution of the script -#REMOVEME? ynh_abort_if_errors - -#================================================= -# LOAD SETTINGS -#================================================= -#REMOVEME? ynh_script_progression --message="Loading installation settings..." - -#REMOVEME? export app=$YNH_APP_INSTANCE_NAME - -#REMOVEME? export server=$(ynh_app_setting_get --app=$app --key=server) - -export install_dir="/opt/yunohost/${app}" - #================================================= # INSTALL RESTIC #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 9f3cfdb..a368cb2 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -9,27 +9,6 @@ source _common.sh source /usr/share/yunohost/helpers -#================================================= -# LOAD SETTINGS -#================================================= -#REMOVEME? ynh_script_progression --message="Loading installation settings..." - -#REMOVEME? export app=$YNH_APP_INSTANCE_NAME - -export install_dir="/opt/yunohost/${app}" -#REMOVEME? export server=$(ynh_app_setting_get $app server) -#REMOVEME? export port=$(ynh_app_setting_get $app port) -#REMOVEME? export ssh_user=$(ynh_app_setting_get $app ssh_user) -#REMOVEME? export backup_path=$(ynh_app_setting_get $app backup_path) -#REMOVEME? export passphrase=$(ynh_app_setting_get $app passphrase) -#REMOVEME? export on_calendar=$(ynh_app_setting_get $app on_calendar) -#REMOVEME? export check_on_calendar=$(ynh_app_setting_get $app check_on_calendar) -#REMOVEME? export check_read_data_on_calendar=$(ynh_app_setting_get $app check_read_data_on_calendar) -#REMOVEME? export conf=$(ynh_app_setting_get $app conf) -#REMOVEME? export data=$(ynh_app_setting_get $app data) -#REMOVEME? export apps=$(ynh_app_setting_get $app apps) -#REMOVEME? export allow_extra_space_use=$(ynh_app_setting_get $app allow_extra_space_use) - #================================================= # CHECK VERSION #================================================= @@ -39,18 +18,7 @@ upgrade_type=$(ynh_check_app_version_changed) #================================================= # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP #================================================= -#REMOVEME? ynh_script_progression --message="Backing up the app before upgrading (may take a while)..." - -# Backup the current version of the app -#REMOVEME? ynh_backup_before_upgrade -#REMOVEME? ynh_clean_setup () { - ynh_clean_check_starting - # Restore it if the upgrade fails -#REMOVEME? ynh_restore_upgradebackup -} -# Exit if an error occurs during the execution of the script -#REMOVEME? ynh_abort_if_errors - +ynh_script_progression --message="Backing up the app before upgrading (may take a while)..." if grep "${app}.timer" /etc/yunohost/services.yml > /dev/null ; then yunohost service remove $app.timer