diff --git a/scripts/install b/scripts/install index 314d355..8335b86 100644 --- a/scripts/install +++ b/scripts/install @@ -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 diff --git a/scripts/remove b/scripts/remove index 4250073..ff6731b 100755 --- a/scripts/remove +++ b/scripts/remove @@ -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 diff --git a/scripts/restore b/scripts/restore index 5582145..e41d25a 100644 --- a/scripts/restore +++ b/scripts/restore @@ -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 diff --git a/scripts/upgrade b/scripts/upgrade index 51605e8..88c5911 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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 #=================================================