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

7 lines
195 B
Plaintext
Raw Normal View History

#!/usr/bin/env sh
2023-10-07 06:04:49 +04:00
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