1
0
Fork 0
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:
Josué Tille 2024-04-15 10:44:26 +02:00
parent 4a5841baff
commit bb18bd7fb2
No known key found for this signature in database
GPG key ID: 5F259226AD51F2F5

View file

@ -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