fix: use localhost

This commit is contained in:
Kyle Kroboth 2025-03-11 23:47:34 -04:00
parent 9b89f54c70
commit f4a2939e55

View File

@ -17,7 +17,7 @@ update_os
wait_for_api() { wait_for_api() {
echo "Waiting for API to become available..." echo "Waiting for API to become available..."
while true; do while true; do
HTTP_STATUS=$(curl -s -o /dev/null -w "%{http_code}" "http://${IP}:19200/api/system/info") HTTP_STATUS=$(curl -s -o /dev/null -w "%{http_code}" "http://localhost:19200/api/system/info")
if [ "$HTTP_STATUS" -eq 200 ]; then if [ "$HTTP_STATUS" -eq 200 ]; then
echo "API is now available!" echo "API is now available!"
break break
@ -103,14 +103,14 @@ msg_ok "Setup ${APPLICATION}"
msg_info "Setting ffmpeg variables in fileflows" msg_info "Setting ffmpeg variables in fileflows"
wait_for_api wait_for_api
FFMPEG_UID=$(curl -s -X 'GET' "http://${IP}:19200/api/variable/name/ffmpeg" -H 'accept: application/json' | jq -r '.Uid') FFMPEG_UID=$(curl -s -X 'GET' "http://localhost:19200/api/variable/name/ffmpeg" -H 'accept: application/json' | jq -r '.Uid')
echo "ffmpeg UID: $FFMPEG_UID" echo "ffmpeg UID: $FFMPEG_UID"
FFPROBE_UID=$(curl -s -X 'GET' "http://${IP}:19200/api/variable/name/ffprobe" -H 'accept: application/json' | jq -r '.Uid') FFPROBE_UID=$(curl -s -X 'GET' "http://localhost:19200/api/variable/name/ffprobe" -H 'accept: application/json' | jq -r '.Uid')
echo "ffprobe UID: $FFPROBE_UID" echo "ffprobe UID: $FFPROBE_UID"
curl -X 'DELETE' \ curl -X 'DELETE' \
"http://${IP}:19200/api/variable" \ "http://localhost:19200/api/variable" \
-H 'accept: */*' \ -H 'accept: */*' \
-H 'Content-Type: application/json' \ -H 'Content-Type: application/json' \
-d "{ -d "{
@ -124,7 +124,7 @@ FFMPEG_PATH=$(which ffmpeg)
FFPROBE_PATH=$(which ffprobe) FFPROBE_PATH=$(which ffprobe)
curl -X 'POST' \ curl -X 'POST' \
"http://${IP}:19200/api/variable" \ "http://localhost:19200/api/variable" \
-H 'accept: */*' \ -H 'accept: */*' \
-H 'Content-Type: application/json' \ -H 'Content-Type: application/json' \
-d "{ -d "{
@ -133,7 +133,7 @@ curl -X 'POST' \
}" }"
curl -X 'POST' \ curl -X 'POST' \
"http://${IP}:19200/api/variable" \ "http://localhost:19200/api/variable" \
-H 'accept: */*' \ -H 'accept: */*' \
-H 'Content-Type: application/json' \ -H 'Content-Type: application/json' \
-d "{ -d "{