1
0
dwelling-radio/tools/radio-listener-connect

7 lines
204 B
Plaintext
Raw Normal View History

#!/usr/bin/env sh
response=$(curl -XPOST --unix-socket /var/run/dwelling-radio/sock http://localhost/api/listener -o /dev/null -s -w "%{response_code}")
if [ "$response" -ne "201" ]; then
exit 1;
fi