10 lines
268 B
Bash
10 lines
268 B
Bash
#!/usr/bin/env sh
|
|
|
|
radiodj_socket=/var/run/dwelling-radio/sock
|
|
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
|
|
exit 1;
|
|
fi |