2023-09-30 23:59:06 +04:00
|
|
|
#!/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}")
|
|
|
|
|
2023-10-01 00:02:04 +04:00
|
|
|
if [ "$response" -ne "200" ]; then
|
2023-09-30 23:59:06 +04:00
|
|
|
exit 1;
|
|
|
|
fi
|