1
0

Updated tools/radio-*.

This commit is contained in:
Alexander Andreev 2023-10-02 04:00:59 +04:00
parent c2c8c82212
commit 976ad683ca
Signed by: Arav
GPG Key ID: D22A817D95815393
3 changed files with 6 additions and 6 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/env sh #!/usr/bin/env sh
radiodj_socket=/var/run/dwelling-radio/djsock radiodj_socket=/var/run/dwelling-radio/sock
radiodj_playlist_url=http:/playlist radiodj_playlist_url=http:/api/playlist
CURL_FLAGS=--unix-socket $radiodj_socket $radiodj_playlist_url -o /dev/null -s -w "%{response_code}" CURL_FLAGS=--unix-socket $radiodj_socket $radiodj_playlist_url -o /dev/null -s -w "%{response_code}"

View File

@ -1,7 +1,7 @@
#!/usr/bin/env sh #!/usr/bin/env sh
radiodj_socket=/var/run/dwelling-radio/djsock radiodj_socket=/var/run/dwelling-radio/sock
radiodj_listener_url=http:/listener radiodj_listener_url=http:/api/listener
response=$(curl -XPOST --unix-socket $radiodj_socket $radiodj_listener_url -o /dev/null -s -w "%{response_code}") response=$(curl -XPOST --unix-socket $radiodj_socket $radiodj_listener_url -o /dev/null -s -w "%{response_code}")

View File

@ -1,7 +1,7 @@
#!/usr/bin/env sh #!/usr/bin/env sh
radiodj_socket=/var/run/dwelling-radio/djsock radiodj_socket=/var/run/dwelling-radio/sock
radiodj_listener_url=http:/listener radiodj_listener_url=http:/api/listener
response=$(curl -XDELETE --unix-socket $radiodj_socket $radiodj_listener_url -o /dev/null -s -w "%{response_code}") response=$(curl -XDELETE --unix-socket $radiodj_socket $radiodj_listener_url -o /dev/null -s -w "%{response_code}")