7 lines
204 B
Bash
7 lines
204 B
Bash
#!/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 |