1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/restic_ynh.git synced 2024-09-03 20:16:22 +02:00
This commit is contained in:
Éric Gaspar 2023-11-25 20:15:07 +01:00
parent e454e39eee
commit 04bf3dbbcd
3 changed files with 1 additions and 70 deletions

View file

@ -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
#=================================================

View file

@ -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
#=================================================

View file

@ -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