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:
parent
5c49b66ac3
commit
2c5ad939e0
1 changed files with 5 additions and 1 deletions
|
@ -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
|
# 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
|
# 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
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||||
|
|
Loading…
Add table
Reference in a new issue