unattended_upgrades_ynh/scripts/remove

39 lines
1.1 KiB
Text
Raw Normal View History

2018-02-24 21:03:40 +01:00
#!/bin/bash
#=================================================
# GENERIC STARTING
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# LOAD SETTINGS
#=================================================
app=$YNH_APP_INSTANCE_NAME
#=================================================
# STANDARD REMOVE
#=================================================
# REMOVE DEPENDENCIES
#=================================================
ynh_remove_app_dependencies
#=================================================
# SPECIFIC REMOVE
#=================================================
2018-02-25 14:46:16 +01:00
# REMOVE THE APT PERIODIC FILE
2018-02-24 21:03:40 +01:00
#=================================================
2018-02-25 14:46:16 +01:00
ynh_secure_remove "/etc/apt/apt.conf.d/02periodic"
2018-02-24 21:03:40 +01:00
#=================================================
2018-02-25 14:46:16 +01:00
# DECONFIGURE UNATTENDED-UPGRADES
2018-02-24 21:03:40 +01:00
#=================================================
2018-02-25 14:46:16 +01:00
mv "/etc/apt/50unattended-upgrades.backup" "/etc/apt/apt.conf.d/50unattended-upgrades"