From 575db1502c5257e856210d624a317383a574c5fa Mon Sep 17 00:00:00 2001 From: Sebastian Gumprich Date: Sun, 12 Sep 2021 22:01:12 +0200 Subject: [PATCH] make it possible to set app to public/private --- scripts/install | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 55ee27e..fbdd515 100755 --- a/scripts/install +++ b/scripts/install @@ -159,8 +159,11 @@ chmod 644 "/etc/cron.d/$app" #================================================= ynh_script_progression --message="Configuring permissions..." --weight=3 -# Restrict access to admin only -ynh_permission_update --permission "main" --add visitors +# Make app public if necessary +if [ $is_public -eq 1 ] +then + ynh_permission_update --permission="main" --add="visitors" +fi #================================================= # RELOAD NGINX