2017-11-01 20:57:58 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# IMPORT GENERIC HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
source _common.sh
|
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
|
|
|
#=================================================
|
2024-03-29 12:47:49 +01:00
|
|
|
# REMOVE SYSTEM CONFIGURATIONS
|
2017-11-01 20:57:58 +01:00
|
|
|
#=================================================
|
2024-03-29 12:47:49 +01:00
|
|
|
ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
|
2017-11-01 20:57:58 +01:00
|
|
|
|
2022-07-16 19:44:33 +02:00
|
|
|
# Remove the app-specific logrotate config
|
|
|
|
ynh_remove_logrotate
|
2017-11-01 20:57:58 +01:00
|
|
|
|
|
|
|
# Remove a cron file
|
2019-05-26 17:00:09 +02:00
|
|
|
ynh_secure_remove --file="/etc/cron.d/$app"
|
2017-11-01 20:57:58 +01:00
|
|
|
|
2024-03-29 12:47:49 +01:00
|
|
|
ynh_secure_remove --file="/var/log/$app"
|
2019-01-30 16:07:38 +01:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
|
2019-05-26 17:00:09 +02:00
|
|
|
ynh_script_progression --message="Removal of $app completed" --last
|