1
0

In radio-* scripts fixed the malformed URLs.

This commit is contained in:
Alexander Andreev 2023-10-08 04:30:19 +04:00
parent 7f1a49ec91
commit 5c061b82f0
Signed by: Arav
GPG Key ID: D22A817D95815393
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
#!/usr/bin/env sh #!/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 if [ "${outp: -3}" != "200" ]; then
exit 1; exit 1;

View File

@ -1,6 +1,6 @@
#!/usr/bin/env sh #!/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 if [ "$response" -ne "201" ]; then
exit 1; exit 1;

View File

@ -1,6 +1,6 @@
#!/usr/bin/env sh #!/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 if [ "$response" -ne "200" ]; then
exit 1; exit 1;