1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pgadmin_ynh.git synced 2024-09-03 19:56:38 +02:00

Remove log only if purge are enabled

This commit is contained in:
Josué Tille 2024-04-21 12:04:09 +02:00
parent 4d07565e00
commit fb20f2e9b6
No known key found for this signature in database
GPG key ID: 5F259226AD51F2F5

View file

@ -33,8 +33,10 @@ ynh_remove_nginx_config
#================================================= #=================================================
ynh_script_progression --message="Removing various files..." --weight=1 ynh_script_progression --message="Removing various files..." --weight=1
# Remove the log files if [ "$YNH_APP_PURGE" -eq 1 ]; then
ynh_secure_remove --file="/var/log/$app" ynh_script_progression --message="Removing logs..."
ynh_secure_remove --file=/var/log/"$app"
fi
#================================================= #=================================================
# END OF SCRIPT # END OF SCRIPT