From 9314a6259ba12389abcdaee37929e17eacfcd127 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 4 Dec 2021 11:59:27 +0100 Subject: [PATCH 1/2] fix linter --- check_process | 1 - conf/nginx.conf | 5 ----- manifest.json | 6 ++---- scripts/restore | 13 +------------ 4 files changed, 3 insertions(+), 22 deletions(-) diff --git a/check_process b/check_process index 3aeb286..0bbceb1 100644 --- a/check_process +++ b/check_process @@ -15,7 +15,6 @@ upgrade=1 from_commit=bc421d01d57a273a59287cf7500e94a89de0abed backup_restore=1 multi_instance=0 - port_already_use=1 (6680) change_url=1 ;;; Options Email= diff --git a/conf/nginx.conf b/conf/nginx.conf index 1740a9d..72f345f 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,10 +1,5 @@ location /mopidy/ws { - # Force usage of https - if ($scheme = http) { - rewrite ^ https://$server_name$request_uri? permanent; - } - proxy_pass http://localhost:__PORT__; proxy_http_version 1.1; proxy_set_header Host $host; diff --git a/manifest.json b/manifest.json index adb6887..aa7099c 100644 --- a/manifest.json +++ b/manifest.json @@ -12,7 +12,6 @@ "license": "Apache-2.0", "website": "https://www.mopidy.com", "admindoc": "https://docs.mopidy.com/en/latest", - "userdoc": "https://yunohost.org/apps/", "code": "https://github.com/mopidy/mopidy" }, "license": "Apache-2.0", @@ -25,7 +24,7 @@ "email": "cyp@rouquin.me" }, "requirements": { - "yunohost": ">= 4.2.0" + "yunohost": ">= 4.3.0" }, "multi_instance": false, "services": [ @@ -35,8 +34,7 @@ "install" : [ { "name": "domain", - "type": "domain", - "example": "example.com" + "type": "domain" }, { "name": "path", diff --git a/scripts/restore b/scripts/restore index 6c6cf8f..782f58b 100755 --- a/scripts/restore +++ b/scripts/restore @@ -39,18 +39,7 @@ cmd_file="/usr/local/bin/mopidyctl" #================================================= ynh_script_progression --message="Validating restoration parameters..." --weight=3 -test ! -d $final_path \ - || ynh_die --message="There is already a directory: $final_path " - -# Check web path availability -ynh_webpath_available $domain $path_url\ - || ynh_die --message="Path not available: ${domain}${path_url}" -ynh_webpath_available $domain "/musicbox_webclient"\ - || ynh_die --message="Path not available: ${domain}/musicbox_webclient" -ynh_webpath_available $domain "/mopidy"\ - || ynh_die --message="Path not available: ${domain}/mopidy" -ynh_webpath_available $domain "/local"\ - || ynh_die --message="Path not available: ${domain}/local" +test ! -d $final_path || ynh_die --message="There is already a directory: $final_path " #================================================= # STANDARD RESTORATION STEPS From 72258e3c5eaf0e972404014be5450bed847d61c7 Mon Sep 17 00:00:00 2001 From: Yunohost-Bot <> Date: Sat, 4 Dec 2021 10:59:32 +0000 Subject: [PATCH 2/2] Auto-update README --- README.md | 1 - README_fr.md | 1 - 2 files changed, 2 deletions(-) diff --git a/README.md b/README.md index 49e75ac..9600a7f 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,6 @@ Play music, podcasts and radio programs from local disk and various streaming se ## Documentation and resources * Official app website: https://www.mopidy.com -* Official user documentation: https://yunohost.org/apps/ * Official admin documentation: https://docs.mopidy.com/en/latest * Upstream app code repository: https://github.com/mopidy/mopidy * YunoHost documentation for this app: https://yunohost.org/app_mopidy diff --git a/README_fr.md b/README_fr.md index 4541739..9778275 100644 --- a/README_fr.md +++ b/README_fr.md @@ -41,7 +41,6 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour ## Documentations et ressources * Site officiel de l'app : https://www.mopidy.com -* Documentation officielle utilisateur : https://yunohost.org/apps/ * Documentation officielle de l'admin : https://docs.mopidy.com/en/latest * Dépôt de code officiel de l'app : https://github.com/mopidy/mopidy * Documentation YunoHost pour cette app : https://yunohost.org/app_mopidy