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

Remove the log config but not the log

This commit is contained in:
Gérard Collin 2024-06-21 11:36:21 +02:00
parent 64d3dd772c
commit a822a30725

View file

@ -29,6 +29,10 @@ done
# Remove the dedicated NGINX config
ynh_remove_nginx_config
# Remove the app-specific logrotate config
ynh_remove_logrotate
# Remove a database if it exists, along with the associated user
for db_name in "${MONGO_DB_LIST[@]}"; do
ynh_mongo_remove_db --db_user=$db_user --db_name="dontCode$tenant$db_name"
@ -39,9 +43,6 @@ ynh_remove_mongo
_remove_restart_script_and_sudoers
# Remove the log files
ynh_secure_remove --file="/var/log/$app"
#=================================================
# END OF SCRIPT
#=================================================