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:
parent
727a8d7114
commit
fecffedd11
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue