In radio-* scripts fixed the malformed URLs.
This commit is contained in:
parent
7f1a49ec91
commit
5c061b82f0
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
outp="$(curl -XGET --unix-socket /var/run/dwelling-radio/sock http:/api/playlist -s -w '%{response_code}')"
|
||||
outp="$(curl -XGET --unix-socket /var/run/dwelling-radio/sock http://localhost/api/playlist -s -w '%{response_code}')"
|
||||
|
||||
if [ "${outp: -3}" != "200" ]; then
|
||||
exit 1;
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
response=$(curl -XPOST --unix-socket /var/run/dwelling-radio/sock http:/api/listener -o /dev/null -s -w "%{response_code}")
|
||||
response=$(curl -XPOST --unix-socket /var/run/dwelling-radio/sock http://localhost/api/listener -o /dev/null -s -w "%{response_code}")
|
||||
|
||||
if [ "$response" -ne "201" ]; then
|
||||
exit 1;
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
response=$(curl -XDELETE --unix-socket /var/run/dwelling-radio/sock http:/api/listener -o /dev/null -s -w "%{response_code}")
|
||||
response=$(curl -XDELETE --unix-socket /var/run/dwelling-radio/sock http://localhost/api/listener -o /dev/null -s -w "%{response_code}")
|
||||
|
||||
if [ "$response" -ne "200" ]; then
|
||||
exit 1;
|
||||
|
Loading…
Reference in New Issue
Block a user