diff --git a/scripts/remove b/scripts/remove index 73e8632..6020846 100644 --- a/scripts/remove +++ b/scripts/remove @@ -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