36 lines
916 B
Bash
36 lines
916 B
Bash
#!/bin/bash
|
|||
|
|
|
||
|
|
#=================================================
|
||
|
|
# IMPORT GENERIC HELPERS
|
||
|
|
#=================================================
|
||
|
|
|
||
|
|
source _common.sh
|
||
|
|
source /usr/share/yunohost/helpers
|
||
|
|
|
||
|
|
#=================================================
|
||
|
|
# REMOVE SYSTEM CONFIGURATION
|
||
|
|
#=================================================
|
||
|
|
ynh_script_progression "Retrait de la configuration système de $app…"
|
||
|
|
|
||
|
|
# Le minuteur d'abord : inutile de déclencher un passage de collecte pendant
|
||
|
|
# qu'on démonte le reste.
|
||
|
|
retirer_le_minuteur
|
||
|
|
|
||
|
|
ynh_config_remove_logrotate
|
||
|
|
|
||
|
|
if ynh_hide_warnings yunohost service status "$app" >/dev/null; then
|
||
|
|
yunohost service remove "$app"
|
||
|
|
fi
|
||
|
|
|
||
|
|
ynh_config_remove_systemd
|
||
|
|
|
||
|
|
ynh_config_remove_nginx
|
||
|
|
|
||
|
|
ynh_safe_rm "/var/log/$app"
|
||
|
|
|
||
|
|
#=================================================
|
||
|
|
# END OF SCRIPT
|
||
|
|
#=================================================
|
||
|
|
|
||
|
|
ynh_script_progression "Suppression de $app terminée"
|