From 29e324ef0fbcbc827f7ac23c6e36454c6b83d84e Mon Sep 17 00:00:00 2001 From: mhfowler Date: Fri, 8 Oct 2021 10:44:14 +0200 Subject: [PATCH] Add is_public flag --- scripts/install | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/scripts/install b/scripts/install index 2d31acd..5619bb1 100755 --- a/scripts/install +++ b/scripts/install @@ -178,15 +178,20 @@ ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$ap #================================================= ynh_script_progression --message="Configuring permissions..." --time --weight=1 -# Make app public -# Everyone can access the app. -# The "main" permission is automatically created before the install script. -ynh_permission_update --permission="main" --add="visitors" - -# all users can access the /admin section, with or without SSO +# for normal operation of the app, is_public should equal True, +# and all visitors should be able to access the /admin section, with or without SSO # as go-ssb-room has its own authentication and user-system # which operates outside of yunohost SSO +# Make app public if necessary +if [ $is_public -eq 1 ] +then + # Everyone can access the app. + # The "main" permission is automatically created before the install script. + ynh_permission_update --permission="main" --add="visitors" +fi + + #================================================= # RELOAD NGINX #=================================================