1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ssbroom_ynh.git synced 2024-09-03 20:26:29 +02:00

Add is_public flag

This commit is contained in:
mhfowler 2021-10-08 10:44:14 +02:00
parent 709a3d5452
commit 29e324ef0f

View file

@ -178,14 +178,19 @@ ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$ap
#================================================= #=================================================
ynh_script_progression --message="Configuring permissions..." --time --weight=1 ynh_script_progression --message="Configuring permissions..." --time --weight=1
# Make app public # 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. # Everyone can access the app.
# The "main" permission is automatically created before the install script. # The "main" permission is automatically created before the install script.
ynh_permission_update --permission="main" --add="visitors" ynh_permission_update --permission="main" --add="visitors"
fi
# all users can 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
#================================================= #=================================================
# RELOAD NGINX # RELOAD NGINX