From 4182e252fa65ca2c8e1bcc87327ff9e0abf108e3 Mon Sep 17 00:00:00 2001 From: ljf Date: Sun, 5 Feb 2017 22:45:48 +0100 Subject: [PATCH] [fix] Limesurvey user not deleted because use by a process --- scripts/remove | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/remove b/scripts/remove index 3878264..8fffbbb 100755 --- a/scripts/remove +++ b/scripts/remove @@ -8,11 +8,17 @@ local_path=$(sudo yunohost app setting $app local_path) domain=$(ynh_app_setting_get $app domain) ynh_mysql_remove_db "$user" "$app" -ynh_system_user_delete "$user" + ynh_secure_rm "$local_path" ynh_secure_rm "/home/yunohost.app/$app" + ynh_rm_nginx_conf ynh_rm_php_fpm_conf + +# Delete user after php5-fpm is restarted without the app conf +# We can't delete it before because php5-fpm use it +ynh_system_user_delete "$user" + sudo yunohost app ssowatconf echo -e "\e[0m" # Restore norml color