mirror of
https://github.com/YunoHost-Apps/unattended_upgrades_ynh.git
synced 2024-10-01 13:35:00 +02:00
32 lines
1 KiB
Bash
Executable file
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
|