unattended_upgrades_ynh/scripts/remove
2024-01-09 17:31:18 +01:00

32 lines
1 KiB
Bash
Executable file

#!/bin/bash
#=================================================
# GENERIC STARTING
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# SPECIFIC REMOVE
#=================================================
# REMOVE THE APT PERIODIC FILE
#=================================================
ynh_script_progression --message="Removing the APT Periodic file..."
ynh_secure_remove "/etc/apt/apt.conf.d/02periodic"
#=================================================
# DECONFIGURE UNATTENDED-UPGRADES
#=================================================
ynh_script_progression --message="Deconfiguring unattended-upgrades..."
mv "/etc/apt/50unattended-upgrades.backup" "/etc/apt/apt.conf.d/50unattended-upgrades"
#=================================================
# END OF SCRIPT
#=================================================
ynh_script_progression --message="Removal of $app completed" --last