1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mautrix_whatsapp_ynh.git synced 2024-09-03 19:46:01 +02:00

Fix upgrade script

This commit is contained in:
Dante 2022-07-06 15:57:14 +01:00
parent 5c49b66ac3
commit 2c5ad939e0

View file

@ -136,7 +136,11 @@ ynh_script_progression --message="Making sure dedicated system user exists..." -
# Create a dedicated user (if not existing) and set home dir to /opt/yunohost/$app so systemd hardening works
# See more: https://docs.mau.fi/bridges/go/setup.html?bridge=whatsapp#systemd-service
ynh_system_user_create --username=$app --home_dir=/opt/yunohost/$app
if ynh_system_user_exists -u "$app"; then
usermod --home /opt/yunohost/$app $app
else
ynh_system_user_create --username=$app --home_dir=/opt/yunohost/$app
fi
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE