2023-09-30 23:59:06 +04:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
|
2023-10-02 04:00:59 +04:00
|
|
|
radiodj_socket=/var/run/dwelling-radio/sock
|
|
|
|
radiodj_listener_url=http:/api/listener
|
2023-09-30 23:59:06 +04:00
|
|
|
|
|
|
|
response=$(curl -XPOST --unix-socket $radiodj_socket $radiodj_listener_url -o /dev/null -s -w "%{response_code}")
|
|
|
|
|
|
|
|
if [ "$response" -ne "201" ]; then
|
|
|
|
exit 1;
|
|
|
|
fi
|