1
0

In radio-listener-* vars was removed.

This commit is contained in:
Alexander Andreev 2023-10-07 06:04:49 +04:00
parent 0590eaa1c5
commit 141e0f3717
Signed by: Arav
GPG Key ID: D22A817D95815393
2 changed files with 2 additions and 8 deletions

View File

@ -1,9 +1,6 @@
#!/usr/bin/env sh #!/usr/bin/env sh
radiodj_socket=/var/run/dwelling-radio/sock response=$(curl -XPOST --unix-socket /var/run/dwelling-radio/sock http:/api/listener -o /dev/null -s -w "%{response_code}")
radiodj_listener_url=http:/api/listener
response=$(curl -XPOST --unix-socket $radiodj_socket $radiodj_listener_url -o /dev/null -s -w "%{response_code}")
if [ "$response" -ne "201" ]; then if [ "$response" -ne "201" ]; then
exit 1; exit 1;

View File

@ -1,9 +1,6 @@
#!/usr/bin/env sh #!/usr/bin/env sh
radiodj_socket=/var/run/dwelling-radio/sock response=$(curl -XDELETE --unix-socket /var/run/dwelling-radio/sock http:/api/listener -o /dev/null -s -w "%{response_code}")
radiodj_listener_url=http:/api/listener
response=$(curl -XDELETE --unix-socket $radiodj_socket $radiodj_listener_url -o /dev/null -s -w "%{response_code}")
if [ "$response" -ne "200" ]; then if [ "$response" -ne "200" ]; then
exit 1; exit 1;