In radio-listener-* vars was removed.
This commit is contained in:
parent
0590eaa1c5
commit
141e0f3717
@ -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;
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user