1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/garage_ynh.git synced 2024-09-03 18:36:32 +02:00

[autopatch] Do not delete logs on app removal (#31)

Co-authored-by: Yunohost-Bot <>
Co-authored-by: OniriCorpe <github@oniricorpe.eu>
This commit is contained in:
YunoHost Bot 2024-08-18 21:53:04 +02:00 committed by GitHub
parent 15b19d79bb
commit 0e5d6447c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -55,9 +55,6 @@ ynh_remove_nginx_config
ynh_replace_string --replace_string="server_name $domain" --match_string="server_name $domain *.$domain" --target_file="/etc/nginx/conf.d/$domain.conf" ynh_replace_string --replace_string="server_name $domain" --match_string="server_name $domain *.$domain" --target_file="/etc/nginx/conf.d/$domain.conf"
ynh_store_file_checksum --file="/etc/nginx/conf.d/$domain.conf" ynh_store_file_checksum --file="/etc/nginx/conf.d/$domain.conf"
# Remove the log files
ynh_secure_remove --file="/var/log/$app"
ynh_secure_remove --file="/usr/share/yunohost/hooks/conf_regen/98-nginx_$app" ynh_secure_remove --file="/usr/share/yunohost/hooks/conf_regen/98-nginx_$app"
yunohost tools regen-conf nginx yunohost tools regen-conf nginx