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

fix linter

This commit is contained in:
ericgaspar 2021-12-04 11:59:27 +01:00
parent 31c5de6842
commit 9314a6259b
4 changed files with 3 additions and 22 deletions

View file

@ -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=

View file

@ -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;

View file

@ -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",

View file

@ -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