From 3bb88968ca7914c5fadef25e020238251f461fc9 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 13 Aug 2022 07:36:27 +0200 Subject: [PATCH] remove subfolder install --- manifest.json | 11 ----------- scripts/install | 2 +- scripts/upgrade | 13 ------------- 3 files changed, 1 insertion(+), 25 deletions(-) diff --git a/manifest.json b/manifest.json index 6a42fb3..62b12f1 100644 --- a/manifest.json +++ b/manifest.json @@ -32,17 +32,6 @@ "name": "domain", "type": "domain" }, - { - "name": "path", - "type": "path", - "example": "/hydrogen", - "default": "/hydrogen" - }, - { - "name": "is_public", - "type": "boolean", - "default": true - }, { "name": "default_server", "type": "string", diff --git a/scripts/install b/scripts/install index 4e184a2..81dde7c 100755 --- a/scripts/install +++ b/scripts/install @@ -25,7 +25,7 @@ ynh_abort_if_errors #================================================= domain=$YNH_APP_ARG_DOMAIN -path_url=$YNH_APP_ARG_PATH +path_url="/" is_public=$YNH_APP_ARG_IS_PUBLIC default_server=$YNH_APP_ARG_DEFAULT_SERVER diff --git a/scripts/upgrade b/scripts/upgrade index b9f889e..ca6851a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -92,19 +92,6 @@ 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 #=================================================