unattended_upgrades_ynh/scripts/remove
Maniack Crudelis 3aa20681a2 Working package
2018-02-25 14:46:16 +01:00

38 lines
1.1 KiB
Bash
Executable file

#!/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
#=================================================
# REMOVE THE APT PERIODIC FILE
#=================================================
ynh_secure_remove "/etc/apt/apt.conf.d/02periodic"
#=================================================
# DECONFIGURE UNATTENDED-UPGRADES
#=================================================
mv "/etc/apt/50unattended-upgrades.backup" "/etc/apt/apt.conf.d/50unattended-upgrades"