From 1213a83fce43d1ef2a46ad4911451af510dbf616 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sat, 31 Oct 2020 14:47:05 +0100 Subject: [PATCH] Can only be installed on root --- README.md | 4 ++++ check_process | 4 +--- manifest.json | 10 ---------- scripts/change_url | 2 +- scripts/install | 2 +- 5 files changed, 7 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 3305146..1262a46 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,10 @@ A search engine for [PeerTube](https://joinpeertube.org/) videos and channels, d **Shipped version:** 0.0.1-2020-10-31 +## Important points to read before installing + +1. **PeerTube search-index** require a dedicated **root domain**, eg. search.domain.tld + ## Screenshots ![](sepia-search-screenshot.png) diff --git a/check_process b/check_process index 80b43a2..a60206c 100644 --- a/check_process +++ b/check_process @@ -6,9 +6,7 @@ ;; Test complet ; Manifest domain="domain.tld" (DOMAIN) - path="/path" (PATH) is_public=1 (PUBLIC|public=1|private=0) - port="666" (PORT) ; Checks pkg_linter=1 setup_sub_dir=1 @@ -22,7 +20,7 @@ # This test is no longer necessary since the version 2.7 (PR: https://github.com/YunoHost/yunohost/pull/304), you can still do it if your app could be installed with this version. # incorrect_path=1 port_already_use=0 - change_url=1 + change_url=0 ;;; Levels # If the level 5 (Package linter) is forced to 1. Please add justifications here. Level 5=auto diff --git a/manifest.json b/manifest.json index f94f340..7f65ae3 100644 --- a/manifest.json +++ b/manifest.json @@ -30,16 +30,6 @@ }, "example": "example.com" }, - { - "name": "path", - "type": "path", - "ask": { - "en": "Choose a path for PeerTube search-index", - "fr": "Choisissez un chemin pour PeerTube search-index" - }, - "example": "/search", - "default": "/search" - }, { "name": "is_public", "type": "boolean", diff --git a/scripts/change_url b/scripts/change_url index 868649e..70b3eed 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -17,7 +17,7 @@ old_domain=$YNH_APP_OLD_DOMAIN old_path=$YNH_APP_OLD_PATH new_domain=$YNH_APP_NEW_DOMAIN -new_path=$YNH_APP_NEW_PATH +new_path="/" app=$YNH_APP_INSTANCE_NAME diff --git a/scripts/install b/scripts/install index d7b43a5..035fcf2 100644 --- 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 app=$YNH_APP_INSTANCE_NAME