2018-02-24 21:03:40 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# GENERIC STARTING
|
|
|
|
#=================================================
|
|
|
|
# IMPORT GENERIC HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
source _common.sh
|
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# SPECIFIC REMOVE
|
|
|
|
#=================================================
|
2018-02-25 14:46:16 +01:00
|
|
|
# REMOVE THE APT PERIODIC FILE
|
2018-02-24 21:03:40 +01:00
|
|
|
#=================================================
|
2020-04-23 20:44:27 +02:00
|
|
|
ynh_script_progression --message="Removing 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
|
|
|
#=================================================
|
2020-04-23 20:44:27 +02:00
|
|
|
ynh_script_progression --message="Deconfiguring 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"
|
2019-01-30 19:18:18 +01:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
|
2020-04-23 20:44:27 +02:00
|
|
|
ynh_script_progression --message="Removal of $app completed" --last
|