mirror of
https://github.com/YunoHost-Apps/synapse_ynh.git
synced 2024-09-03 20:26:38 +02:00
Avoid to crash upgrade in case of ynh_system_user_delete crash
This commit is contained in:
parent
4a5841baff
commit
bb18bd7fb2
1 changed files with 1 additions and 1 deletions
|
@ -235,7 +235,7 @@ if grep -q "^matrix-$app" /etc/passwd; then
|
|||
# Must stop php before remove user as user is used by php
|
||||
systemctl stop php$YNH_PHP_VERSION-fpm.service
|
||||
|
||||
ynh_''system_user_delete --username=matrix-$app
|
||||
ynh_''system_user_delete --username=matrix-"$app" || true
|
||||
yunohost user delete $app || true
|
||||
ynh_''system_user_create --username=$app --home_dir=$code_dir
|
||||
adduser $app ssl-cert
|
||||
|
|
Loading…
Reference in a new issue