From 4043d029b6e148821f30c63881ee63e2761f3317 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 23 Nov 2021 16:41:50 +0100 Subject: [PATCH 1/2] fix --- check_process | 8 ++++---- conf/app.src | 5 ++--- conf/nginx.conf | 5 ----- manifest.json | 4 ++-- scripts/restore | 5 +---- 5 files changed, 9 insertions(+), 18 deletions(-) diff --git a/check_process b/check_process index ad1506e..4cb7767 100755 --- a/check_process +++ b/check_process @@ -1,11 +1,11 @@ ;; Test complet auto_remove=1 ; Manifest - domain="domain.tld" (DOMAIN) - path="/path" (PATH) - admin="john" (USER) + domain="domain.tld" + path="/path" + admin="john" language="en" - is_public=1 (PUBLIC|public=1|private=0) + is_public=1 password="azerty1234" wiki="My Wiki" color="328cc1" diff --git a/conf/app.src b/conf/app.src index d689894..e93f13f 100755 --- a/conf/app.src +++ b/conf/app.src @@ -1,6 +1,5 @@ -SOURCE_URL=https://sourceforge.net/projects/lionwiki-t2t/files/lionwiki-t2t.zip -SOURCE_SUM=3b893ed663da7fb4db381e88d5044281452c68fe3ad920b5a23b326ce5a2e4f6 +SOURCE_URL=http://lionwiki.0o.cz/download/3.2.12/lionwiki-3.2.12.zip +SOURCE_SUM=dfa7ebd8bca1e85fc8d2cc9554ca2a713a30e24f54acad80664c147acd4d1f16 SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=zip SOURCE_IN_SUBDIR=true -SOURCE_FILENAME= diff --git a/conf/nginx.conf b/conf/nginx.conf index 556b622..549b52a 100755 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -4,11 +4,6 @@ location __PATH__/ { # Path to source alias __FINALPATH__/ ; - # Force usage of https - if ($scheme = http) { - rewrite ^ https://$server_name$request_uri? permanent; - } - index index.php; # Common parameter to increase upload size limit in conjunction with dedicated php-fpm file diff --git a/manifest.json b/manifest.json index 4b7e237..9ec33eb 100755 --- a/manifest.json +++ b/manifest.json @@ -6,14 +6,14 @@ "en": "Lightweight wiki-style CMS using the txt2tags syntax", "fr": "CMS léger, géré sous forme de wiki utilisant la syntaxe txt2tags" }, - "version": "3.2.11~ynh6", + "version": "3.2.12~ynh1", "url": "https://lionwiki-t2t.sourceforge.io/", "license": "MIT", "maintainer": { "name": "Eric Forgeot" }, "requirements": { - "yunohost": ">= 4.1.7" + "yunohost": ">= 4.3.0" }, "multi_instance": true, "services": [ diff --git a/scripts/restore b/scripts/restore index 7640926..a05d5b0 100755 --- a/scripts/restore +++ b/scripts/restore @@ -38,10 +38,7 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) #================================================= ynh_script_progression --message="Validating restoration parameters..." --weight=1 -ynh_webpath_available --domain=$domain --path_url=$path_url \ - || ynh_die --message="Path not available: ${domain}${path_url}" -test ! -d $final_path \ - || ynh_die --message="There is already a directory: $final_path " +test ! -d $final_path || ynh_die --message="There is already a directory: $final_path " #================================================= # STANDARD RESTORATION STEPS From 95abfa60499bb816091351818fecccb87d809f79 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 23 Nov 2021 16:43:49 +0100 Subject: [PATCH 2/2] Fix --- check_process | 1 - manifest.json | 9 +++------ pull_request_template.md | 16 ---------------- 3 files changed, 3 insertions(+), 23 deletions(-) delete mode 100755 pull_request_template.md diff --git a/check_process b/check_process index 4cb7767..525d22a 100755 --- a/check_process +++ b/check_process @@ -20,7 +20,6 @@ upgrade=1 from_commit=69db9a386081d9241f5548e09052fd58dee45463 backup_restore=1 multi_instance=1 - port_already_use=0 change_url=1 ;;; Options Email= diff --git a/manifest.json b/manifest.json index 9ec33eb..b465d15 100755 --- a/manifest.json +++ b/manifest.json @@ -24,8 +24,7 @@ "install" : [ { "name": "domain", - "type": "domain", - "example": "domain.org" + "type": "domain" }, { "name": "path", @@ -35,8 +34,7 @@ }, { "name": "admin", - "type": "user", - "example": "johndoe" + "type": "user" }, { "name": "is_public", @@ -63,8 +61,7 @@ "help": { "en": "Define a password which will be used for wiki edition and administration.", "fr": "Veuillez définir un mot de passe qui sera valable pour l'édition des pages de ce wiki ainsi que pour l'administration." - }, - "example": "Choose a password" + } }, { "name": "wiki", diff --git a/pull_request_template.md b/pull_request_template.md deleted file mode 100755 index 6c28fc5..0000000 --- a/pull_request_template.md +++ /dev/null @@ -1,16 +0,0 @@ -## Problem -- *Description of why you made this PR* - -## Solution -- *And how do you fix that problem* - -## PR Status -- [ ] Code finished. -- [ ] Tested with Package_check. -- [ ] Fix or enhancement tested. -- [ ] Upgrade from last version tested. -- [ ] Can be reviewed and tested. - -## Package_check results ---- -* An automatic package_check will be launch at https://ci-apps-dev.yunohost.org/, when you add a specific comment to your Pull Request: "!testme", "!gogogadgetoci" or "By the power of systemd, I invoke The Great App CI to test this Pull Request!"*