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:
parent
709a3d5452
commit
29e324ef0f
1 changed files with 11 additions and 6 deletions
|
@ -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
|
ynh_script_progression --message="Configuring permissions..." --time --weight=1
|
||||||
|
|
||||||
# Make app public
|
# for normal operation of the app, is_public should equal True,
|
||||||
# Everyone can access the app.
|
# and all visitors should be able to access the /admin section, with or without SSO
|
||||||
# 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
|
|
||||||
# as go-ssb-room has its own authentication and user-system
|
# as go-ssb-room has its own authentication and user-system
|
||||||
# which operates outside of yunohost SSO
|
# 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
|
# RELOAD NGINX
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue