1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mopidy_ynh.git synced 2024-09-03 19:46:21 +02:00

Merge pull request #33 from YunoHost-Apps/Fix-linter

Fix linter
This commit is contained in:
Éric Gaspar 2022-01-24 22:51:11 +01:00 committed by GitHub
commit 2455004403
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 3 additions and 24 deletions

View file

@ -45,7 +45,6 @@ Play music, podcasts and radio programs from local disk and various streaming se
## Documentation and resources ## Documentation and resources
* Official app website: https://www.mopidy.com * Official app website: https://www.mopidy.com
* Official user documentation: https://yunohost.org/apps/
* Official admin documentation: https://docs.mopidy.com/en/latest * Official admin documentation: https://docs.mopidy.com/en/latest
* Upstream app code repository: https://github.com/mopidy/mopidy * Upstream app code repository: https://github.com/mopidy/mopidy
* YunoHost documentation for this app: https://yunohost.org/app_mopidy * YunoHost documentation for this app: https://yunohost.org/app_mopidy

View file

@ -41,7 +41,6 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour
## Documentations et ressources ## Documentations et ressources
* Site officiel de l'app : https://www.mopidy.com * 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 * 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 * Dépôt de code officiel de l'app : https://github.com/mopidy/mopidy
* Documentation YunoHost pour cette app : https://yunohost.org/app_mopidy * Documentation YunoHost pour cette app : https://yunohost.org/app_mopidy

View file

@ -15,7 +15,6 @@
upgrade=1 from_commit=bc421d01d57a273a59287cf7500e94a89de0abed upgrade=1 from_commit=bc421d01d57a273a59287cf7500e94a89de0abed
backup_restore=1 backup_restore=1
multi_instance=0 multi_instance=0
port_already_use=1 (6680)
change_url=1 change_url=1
;;; Options ;;; Options
Email= Email=

View file

@ -1,10 +1,5 @@
location /mopidy/ws { location /mopidy/ws {
# Force usage of https
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
proxy_pass http://localhost:__PORT__; proxy_pass http://localhost:__PORT__;
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_set_header Host $host; proxy_set_header Host $host;

View file

@ -12,7 +12,6 @@
"license": "Apache-2.0", "license": "Apache-2.0",
"website": "https://www.mopidy.com", "website": "https://www.mopidy.com",
"admindoc": "https://docs.mopidy.com/en/latest", "admindoc": "https://docs.mopidy.com/en/latest",
"userdoc": "https://yunohost.org/apps/",
"code": "https://github.com/mopidy/mopidy" "code": "https://github.com/mopidy/mopidy"
}, },
"license": "Apache-2.0", "license": "Apache-2.0",
@ -25,7 +24,7 @@
"email": "cyp@rouquin.me" "email": "cyp@rouquin.me"
}, },
"requirements": { "requirements": {
"yunohost": ">= 4.2.0" "yunohost": ">= 4.3.0"
}, },
"multi_instance": false, "multi_instance": false,
"services": [ "services": [
@ -35,8 +34,7 @@
"install" : [ "install" : [
{ {
"name": "domain", "name": "domain",
"type": "domain", "type": "domain"
"example": "example.com"
}, },
{ {
"name": "path", "name": "path",

View file

@ -39,18 +39,7 @@ cmd_file="/usr/local/bin/mopidyctl"
#================================================= #=================================================
ynh_script_progression --message="Validating restoration parameters..." --weight=3 ynh_script_progression --message="Validating restoration parameters..." --weight=3
test ! -d $final_path \ test ! -d $final_path || ynh_die --message="There is already a directory: $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"
#================================================= #=================================================
# STANDARD RESTORATION STEPS # STANDARD RESTORATION STEPS