10 lines
268 B
Plaintext
10 lines
268 B
Plaintext
|
#!/usr/bin/env sh
|
||
|
|
||
|
radiodj_socket=/var/run/dwelling-radio/djsock
|
||
|
radiodj_listener_url=http:/listener
|
||
|
|
||
|
response=$(curl -XDELETE --unix-socket $radiodj_socket $radiodj_listener_url -o /dev/null -s -w "%{response_code}")
|
||
|
|
||
|
if [ "$response" -ne "204" ]; then
|
||
|
exit 1;
|
||
|
fi
|