1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/domoticz_ynh.git synced 2024-09-03 18:26:17 +02:00

[autopatch] Do not delete logs on app removal

This commit is contained in:
Yunohost-Bot 2024-06-23 21:44:20 +02:00 committed by OniriCorpe
parent ab5050d17e
commit acbbcd4b1f

View file

@ -22,7 +22,6 @@ if [ "$domain" != "$mqtt_domain" ]; then
ynh_secure_remove --file="/usr/share/yunohost/hooks/conf_regen/95-nginx_domoticz" ynh_secure_remove --file="/usr/share/yunohost/hooks/conf_regen/95-nginx_domoticz"
ynh_secure_remove --file="/etc/nginx/conf.d/${mqtt_domain}.d/mqtt_${app}.conf" ynh_secure_remove --file="/etc/nginx/conf.d/${mqtt_domain}.d/mqtt_${app}.conf"
yunohost tools regen-conf postfix yunohost tools regen-conf postfix
ynh_secure_remove --file="/var/log/mosquitto"
fi fi
ynh_script_progression --message="Removing system configurations related to $app..." --weight=1 ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
@ -42,7 +41,6 @@ ynh_remove_logrotate
ynh_remove_fail2ban_config ynh_remove_fail2ban_config
ynh_secure_remove --file="/var/log/$app"
#================================================= #=================================================
# END OF SCRIPT # END OF SCRIPT