diff --git a/manifest.json b/manifest.json index 69f79df..d020330 100644 --- a/manifest.json +++ b/manifest.json @@ -30,6 +30,11 @@ { "name": "domain", "type": "domain" + }, + { + "name": "is_public", + "type": "boolean", + "default": true } ] } diff --git a/scripts/install b/scripts/install index a240d22..af790cf 100644 --- a/scripts/install +++ b/scripts/install @@ -25,6 +25,7 @@ ynh_abort_if_errors domain=$YNH_APP_ARG_DOMAIN path_url="/" +is_public=$YNH_APP_ARG_IS_PUBLIC app=$YNH_APP_INSTANCE_NAME @@ -134,7 +135,11 @@ ynh_systemd_action --service_name=$app --action=restart --log_path="systemd" #================================================= ynh_script_progression --message="Configuring permissions..." --weight=1 -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