Add public/private management
This commit is contained in:
parent
940e3fd593
commit
3535ebc901
2 changed files with 12 additions and 0 deletions
|
@ -38,6 +38,11 @@
|
|||
"type": "path",
|
||||
"example": "/qr",
|
||||
"default": "/"
|
||||
},
|
||||
{
|
||||
"name": "is_public",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -5,6 +5,7 @@ ynh_abort_if_errors
|
|||
|
||||
domain=$YNH_APP_ARG_DOMAIN
|
||||
path_url=$YNH_APP_ARG_PATH
|
||||
is_public=$YNH_APP_ARG_IS_PUBLIC
|
||||
app=$YNH_APP_INSTANCE_NAME
|
||||
|
||||
ynh_script_progression --message="Validating installation parameters..."
|
||||
|
@ -33,4 +34,10 @@ ynh_add_nginx_config
|
|||
ynh_script_progression --message="Configuring PHP-FPM..."
|
||||
ynh_add_fpm_config
|
||||
|
||||
ynh_script_progression --message="Configuring permissions..."
|
||||
if [ $is_public -eq 1 ]
|
||||
then
|
||||
ynh_permission_update --permission="main" --add="visitors"
|
||||
fi
|
||||
|
||||
ynh_script_progression --message="Installation of $app completed" --last
|
||||
|
|
Loading…
Add table
Reference in a new issue