1
0

In a bash script for disconn handling a resp code 204 was replaced by 200.

This commit is contained in:
Alexander Andreev 2023-10-01 00:02:04 +04:00
parent 8677af243c
commit 855397ad0c
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -5,6 +5,6 @@ radiodj_listener_url=http:/listener
response=$(curl -XDELETE --unix-socket $radiodj_socket $radiodj_listener_url -o /dev/null -s -w "%{response_code}")
if [ "$response" -ne "204" ]; then
if [ "$response" -ne "200" ]; then
exit 1;
fi