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;