Remove log only if purge are enabled

This commit is contained in:
Josué Tille 2024-04-21 12:07:55 +02:00
parent d6f66dfb7e
commit 1044767a89
No known key found for this signature in database
GPG key ID: 5F259226AD51F2F5

View file

@ -29,8 +29,10 @@ pkill -f seaf-server || true
pkill -f ccnet-server || true
pkill -f seahub || true
ynh_script_progression --message="Removing logs..."
ynh_secure_remove --file=/var/log/seafile
if [ "$YNH_APP_PURGE" -eq 1 ]; then
ynh_script_progression --message="Removing logs..."
ynh_secure_remove --file=/var/log/"$app"
fi
ynh_script_progression --message="Removing code..."
ynh_secure_remove --file=/var/www/$app
ynh_secure_remove --file=/opt/yunohost/$app