From 5c061b82f0a996502b2d6224f480795cefd14738 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sun, 8 Oct 2023 04:30:19 +0400 Subject: [PATCH] In radio-* scripts fixed the malformed URLs. --- tools/radio-fetch | 2 +- tools/radio-listener-connect | 2 +- tools/radio-listener-disconnect | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/radio-fetch b/tools/radio-fetch index 8d28bc0..5465e2f 100755 --- a/tools/radio-fetch +++ b/tools/radio-fetch @@ -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; diff --git a/tools/radio-listener-connect b/tools/radio-listener-connect index b6a89d1..eeef11f 100644 --- a/tools/radio-listener-connect +++ b/tools/radio-listener-connect @@ -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; diff --git a/tools/radio-listener-disconnect b/tools/radio-listener-disconnect index b51d967..2b83c5d 100644 --- a/tools/radio-listener-disconnect +++ b/tools/radio-listener-disconnect @@ -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;