1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/hydrogen_ynh.git synced 2024-09-03 19:26:17 +02:00
This commit is contained in:
ericgaspar 2022-08-12 15:59:52 +02:00
parent d226dbd4e8
commit 5723419a51
2 changed files with 18 additions and 0 deletions

View file

@ -38,6 +38,11 @@
"example": "/hydrogen",
"default": "/hydrogen"
},
{
"name": "is_public",
"type": "boolean",
"default": true
},
{
"name": "default_server",
"type": "string",

View file

@ -92,6 +92,19 @@ chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
#=================================================
# 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
#=================================================
# NGINX CONFIGURATION
#=================================================