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

remove group signald_user

This commit is contained in:
Gredin67 2022-02-03 22:51:10 +01:00 committed by GitHub
parent 5bd06bbe41
commit f700648950
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,7 +53,6 @@ synapse_db_name="matrix_$synapse_instance"
bot_synapse_db_user="@$botname:$server_name"
signald_data="/var/lib/signald"
#signald_exe="/usr/bin/signald"
signald_user="signald" # This is actually chosen by the signald dependency
#=================================================
# CHECK IF THE APP CAN BE RESTORED
@ -67,9 +66,6 @@ test ! -d $final_path || ynh_die --message="There is already a directory: $final
#=================================================
# REINSTALL DEPENDENCIES
#=================================================
# We need to install dependencies before recreating the dedicated user,
# as the dependencies create the `signald` user and group.
# Another option would be to `usermod -aG "$signald_user" $app` later.
ynh_script_progression --message="Reinstalling dependencies..." --weight=1
ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies
@ -84,7 +80,7 @@ ynh_install_extra_app_dependencies --repo="https://updates.signald.org unstable
ynh_script_progression --message="Recreating the dedicated system user..." --weight=1
# Create the dedicated user (if not existing)
ynh_system_user_create --username=$app --groups="$signald_user"
ynh_system_user_create --username=$app
#=================================================
# RESTORE THE APP MAIN DIR