1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ifconfig-io_ynh.git synced 2024-09-03 20:36:27 +02:00

Update: remove is_public

This commit is contained in:
Fabian Wilkens 2022-05-21 15:19:55 +02:00
parent 5152ba9936
commit f51155bf58
No known key found for this signature in database
GPG key ID: 23DFA025BB4E9FAB
2 changed files with 3 additions and 12 deletions

View file

@ -38,11 +38,6 @@
"type": "path", "type": "path",
"example": "/example", "example": "/example",
"default": "/example" "default": "/example"
},
{
"name": "is_public",
"type": "boolean",
"default": true
} }
] ]
} }

View file

@ -25,7 +25,6 @@ ynh_abort_if_errors
domain=$YNH_APP_ARG_DOMAIN domain=$YNH_APP_ARG_DOMAIN
path_url=$YNH_APP_ARG_PATH path_url=$YNH_APP_ARG_PATH
is_public=$YNH_APP_ARG_IS_PUBLIC
app=$YNH_APP_INSTANCE_NAME app=$YNH_APP_INSTANCE_NAME
#================================================= #=================================================
@ -150,12 +149,9 @@ ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$ap
ynh_script_progression --message="Configuring permissions..." --weight=1 ynh_script_progression --message="Configuring permissions..." --weight=1
# Make app public if necessary # Make app public if necessary
if [ $is_public -eq 1 ] # Everyone can access the app.
then # The "main" permission is automatically created before the install script.
# Everyone can access the app. ynh_permission_update --permission="main" --add="visitors"
# The "main" permission is automatically created before the install script.
ynh_permission_update --permission="main" --add="visitors"
fi
#================================================= #=================================================
# RELOAD NGINX # RELOAD NGINX