1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/monitorix_ynh.git synced 2024-09-03 19:46:06 +02:00

Remove log only if purge are enabled

This commit is contained in:
Josué Tille 2024-04-21 12:03:55 +02:00
parent 727a8d7114
commit fecffedd11
No known key found for this signature in database
GPG key ID: 5F259226AD51F2F5

View file

@ -56,7 +56,10 @@ if ynh_mysql_user_exists --user=$db_user; then
fi
ynh_package_autopurge monitorix
ynh_secure_remove --file=/var/log/"$app"
ynh_secure_remove --file="$install_dir"
if [ "$YNH_APP_PURGE" -eq 1 ]; then
ynh_secure_remove --file=/var/log/"$app"
fi
ynh_script_progression --message="Removal of $app completed" --last