From ca7bbfe85ac3061790c081da2594e7b319a938dd Mon Sep 17 00:00:00 2001 From: tituspijean Date: Thu, 20 Apr 2023 21:50:29 +0200 Subject: [PATCH] Make app user belongs to ssl-cert and fix service start --- scripts/config | 2 +- scripts/install | 8 +++++++- scripts/upgrade | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/scripts/config b/scripts/config index cd8d25e..cc18266 100644 --- a/scripts/config +++ b/scripts/config @@ -29,7 +29,7 @@ ynh_app_config_apply() { ynh_add_config --template="../conf/dendrite.yaml" --destination="$install_dir/dendrite.yaml" ynh_add_systemd_config - ynh_systemd_action --service_name=$app --action="restart" --line_match="Cleaning old notifications" --log_path="systemd" + ynh_systemd_action --service_name=$app --action="restart" --line_match="Starting external listener" --log_path="systemd" ynh_app_setting_set --app=$app --key=registration --value=$registration fi diff --git a/scripts/install b/scripts/install index f168327..fb8aaac 100644 --- a/scripts/install +++ b/scripts/install @@ -31,6 +31,12 @@ fi ynh_app_setting_set --app=$app --key=server_name --value=$server_name ynh_app_setting_set --app=$app --key=registration --value=$registration +#================================================= +# ADD USER TO THE SSL-CERT GROUP +#================================================= + +usermod -a -G ssl-cert $app + #================================================= # CREATE A POSTGRESQL DATABASE #================================================= @@ -145,7 +151,7 @@ yunohost service add $app --description="Dendrite Matrix homeserver" --log="/var ynh_script_progression --message="Starting a systemd service..." --weight=1 # Start a systemd service -ynh_systemd_action --service_name=$app --action="start" --line_match="Cleaning old notifications" --log_path="systemd" +ynh_systemd_action --service_name=$app --action="start" --line_match="Starting external listener" --log_path="systemd" #================================================= # END OF SCRIPT diff --git a/scripts/upgrade b/scripts/upgrade index 9d111ed..1c97beb 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -152,7 +152,7 @@ yunohost service add $app --description="Dendrite Matrix homeserver" --log="/var #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=1 -ynh_systemd_action --service_name=$app --action="start" --line_match="Cleaning old notifications" --log_path="systemd" +ynh_systemd_action --service_name=$app --action="start" --line_match="Starting external listener" --log_path="systemd" #================================================= # END OF SCRIPT