From e5d0bc55f892597c62e7b4fef6debf3663fce001 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sun, 20 Mar 2022 13:46:41 +0100 Subject: [PATCH] missing registration --- scripts/upgrade | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 271d86f..e923df0 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -137,6 +137,13 @@ chown -R $app:root "$final_path" #================================================= ynh_script_progression --message="Updating a configuration file..." +if ynh_permission_has_user --permission=main --user=visitors +then + registration="true" +else + registration="false" +fi + ynh_add_config --template="../conf/dendrite.yaml" --destination="$final_path/dendrite.yaml" chmod 400 "$final_path/dendrite.yaml"