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

Remove yunohost user creation

This commit is contained in:
Josué Tille 2024-02-06 21:04:05 +01:00
parent fe8b5b0119
commit fbeb092ac4
No known key found for this signature in database
GPG key ID: 5F259226AD51F2F5
4 changed files with 2 additions and 20 deletions

View file

@ -120,11 +120,7 @@ fi
#=================================================
# CREATE DEDICATED USER
#=================================================
ynh_script_progression --message="Creating $app user..." --weight=1
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 $app -F "Synapse Application" -d $domain -p "$synapse_user_app_pwd"
ynh_script_progression --message='Configuring system groups'
adduser $app ssl-cert
adduser turnserver ssl-cert

View file

@ -77,12 +77,6 @@ ynh_remove_fail2ban_config
#=================================================
# GENERIC FINALIZATION
#=================================================
# REMOVE DEDICATED USER
#=================================================
ynh_script_progression --message="Removing the dedicated system user" --weight=1
# Delete a system user
yunohost user delete $app
ynh_script_progression --message="Removal of $app completed" --last
sleep 1

View file

@ -19,10 +19,9 @@ ynh_script_progression --message="Loading settings..."
#=================================================
# RECREATE THE DEDICATED USER
#=================================================
ynh_script_progression --message="Recreating the dedicated system user..." --weight=3
ynh_script_progression --message='Configuring system groups'
# Create the dedicated user (if not existing)
yunohost user create $app -F "Synapse Application" -d $domain -p "$synapse_user_app_pwd"
adduser $app ssl-cert
adduser turnserver ssl-cert

View file

@ -213,13 +213,6 @@ then
ynh_app_setting_set --app=$app --key=push_include_content --value=$push_include_content
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
# The format to create an user account varies depending on the version of YunoHost currently installed.
yunohost user create $app -F "Synapse Application" -d $domain -p "$synapse_user_app_pwd"
fi
#=================================================
# MIGRATION 7 : STANDARDIZE SYSTEMD UNIT
#=================================================