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:
parent
64d3dd772c
commit
a822a30725
1 changed files with 4 additions and 3 deletions
|
@ -29,6 +29,10 @@ done
|
||||||
# Remove the dedicated NGINX config
|
# Remove the dedicated NGINX config
|
||||||
ynh_remove_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
|
# Remove a database if it exists, along with the associated user
|
||||||
for db_name in "${MONGO_DB_LIST[@]}"; do
|
for db_name in "${MONGO_DB_LIST[@]}"; do
|
||||||
ynh_mongo_remove_db --db_user=$db_user --db_name="dontCode$tenant$db_name"
|
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_restart_script_and_sudoers
|
||||||
|
|
||||||
# Remove the log files
|
|
||||||
ynh_secure_remove --file="/var/log/$app"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue