mirror of
https://github.com/YunoHost-Apps/limesurvey_ynh.git
synced 2024-09-03 19:36:32 +02:00
[fix] Limesurvey user not deleted because use by a process
This commit is contained in:
parent
0501d01c6f
commit
4182e252fa
1 changed files with 7 additions and 1 deletions
|
@ -8,11 +8,17 @@ local_path=$(sudo yunohost app setting $app local_path)
|
||||||
domain=$(ynh_app_setting_get $app domain)
|
domain=$(ynh_app_setting_get $app domain)
|
||||||
|
|
||||||
ynh_mysql_remove_db "$user" "$app"
|
ynh_mysql_remove_db "$user" "$app"
|
||||||
ynh_system_user_delete "$user"
|
|
||||||
|
|
||||||
ynh_secure_rm "$local_path"
|
ynh_secure_rm "$local_path"
|
||||||
ynh_secure_rm "/home/yunohost.app/$app"
|
ynh_secure_rm "/home/yunohost.app/$app"
|
||||||
|
|
||||||
ynh_rm_nginx_conf
|
ynh_rm_nginx_conf
|
||||||
ynh_rm_php_fpm_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
|
sudo yunohost app ssowatconf
|
||||||
echo -e "\e[0m" # Restore norml color
|
echo -e "\e[0m" # Restore norml color
|
||||||
|
|
Loading…
Reference in a new issue