mirror of
https://github.com/YunoHost-Apps/unattended_upgrades_ynh.git
synced 2024-10-01 13:35:00 +02:00
31 lines
1,021 B
Bash
31 lines
1,021 B
Bash
#!/bin/bash
|
|
|
|
#=================================================
|
|
# GENERIC START
|
|
#=================================================
|
|
# IMPORT GENERIC HELPERS
|
|
#=================================================
|
|
|
|
source ../settings/scripts/_common.sh
|
|
source /usr/share/yunohost/helpers
|
|
|
|
#=================================================
|
|
# RESTORE UNATTENDED-UPGRADES CONFIG
|
|
#=================================================
|
|
|
|
ynh_restore_file --origin_path="$apticron_config"
|
|
ynh_restore_file --origin_path="$apticron_config_backup"
|
|
|
|
ynh_restore_file --origin_path="$apticron_cron"
|
|
ynh_restore_file --origin_path="$apticron_cron_backup"
|
|
|
|
ynh_restore_file --origin_path="$unattended_upgrades_config"
|
|
ynh_restore_file --origin_path="$unattended_upgrades_config_backup"
|
|
|
|
ynh_restore_file --origin_path="/etc/apt/apt.conf.d/02periodic"
|
|
|
|
#=================================================
|
|
# END OF SCRIPT
|
|
#=================================================
|
|
|
|
ynh_script_progression --message="Restoration completed for $app" --last
|