Fix "Remove various files" step

ynh_secure_remove won't remove paths that end in a slash
This commit is contained in:
Jules-Bertholet 2021-04-04 21:10:53 -04:00 committed by GitHub
parent da023a9e0e
commit 110876b57e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,10 +119,10 @@ ynh_remove_fail2ban_config
ynh_secure_remove --file="/etc/cron.d/$app"
# Remove a directory securely
ynh_secure_remove --file="/etc/$app/"
ynh_secure_remove --file="/etc/$app"
# Remove the log files
ynh_secure_remove --file="/var/log/$app/"
ynh_secure_remove --file="/var/log/$app"
#=================================================
# GENERIC FINALIZATION