1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/synapse_ynh.git synced 2024-09-03 20:26:38 +02:00

Fix user creation command for YunoHost 11.1

This commit is contained in:
tituspijean 2022-10-31 21:49:13 +01:00
parent 0d1eecd784
commit 0ed4909295
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720
4 changed files with 4 additions and 4 deletions

View file

@ -19,7 +19,7 @@
"code": "https://github.com/matrix-org/synapse"
},
"requirements": {
"yunohost": ">= 4.1.2"
"yunohost": ">= 11.1"
},
"multi_instance": true,
"services": [

View file

@ -146,7 +146,7 @@ ynh_install_app_dependencies $dependances
ynh_script_progression --message="Configuring system user..." --weight=3
ynh_system_user_create --username=$synapse_user --home_dir=$final_path
yunohost user create $synapse_user_app -f Synapse -l Application -d $domain -p "$synapse_user_app_pwd"
yunohost user create $synapse_user_app -F Synapse Application -d $domain -p "$synapse_user_app_pwd"
adduser $synapse_user ssl-cert
adduser turnserver ssl-cert

View file

@ -80,7 +80,7 @@ ynh_script_progression --message="Recreating the dedicated system user..." --wei
# Create the dedicated user (if not existing)
ynh_system_user_create --username=$synapse_user --home_dir=$final_path
yunohost user create $synapse_user_app -f Synapse -l Application -d $domain -p "$synapse_user_app_pwd"
yunohost user create $synapse_user_app -F Synapse Application -d $domain -p "$synapse_user_app_pwd"
adduser $synapse_user ssl-cert
adduser turnserver ssl-cert

View file

@ -141,7 +141,7 @@ fi
if [ -z $synapse_user_app_pwd ]; then
synapse_user_app_pwd="$(ynh_string_random --length=30)"
ynh_app_setting_set --app=$app --key=synapse_user_app_pwd --value=$synapse_user_app_pwd
yunohost user create $synapse_user_app -f Synapse -l Application -d $domain -p "$synapse_user_app_pwd"
yunohost user create $synapse_user_app -F Synapse Application -d $domain -p "$synapse_user_app_pwd"
fi
#=================================================