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