From 71cc5efef1afd305bd28f30371047f913e7ef803 Mon Sep 17 00:00:00 2001 From: BenoitCier Date: Tue, 19 Jan 2021 23:21:57 +0100 Subject: [PATCH] fix permission setting --- scripts/install | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/scripts/install b/scripts/install index e972a15..61c7975 100755 --- a/scripts/install +++ b/scripts/install @@ -181,6 +181,18 @@ chown -R $app:$app $final_path # GENERIC FINALIZATION #================================================= #================================================= +# SETUP SSOWAT +#================================================= +ynh_script_progression --message="Configuring permissions..." --time --weight=1 + +# 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 #================================================= ynh_script_progression --message="Reloading NGINX web server..." --time --weight=1