From 32c28e0aa71ce7b1c87b9bf5eea80b1929c281b6 Mon Sep 17 00:00:00 2001 From: Kyle Kroboth Date: Wed, 12 Mar 2025 23:25:38 -0400 Subject: [PATCH] fix: lowercase variables --- ct/fileflows.sh | 4 ++-- install/fileflows-install.sh | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/ct/fileflows.sh b/ct/fileflows.sh index 60a3c3c03..15595e4a9 100644 --- a/ct/fileflows.sh +++ b/ct/fileflows.sh @@ -30,8 +30,8 @@ function update_script() { exit fi - UPDATE_AVAILABLE=$(curl -s -X 'GET' "http://localhost:19200/api/status/update-available" -H 'accept: application/json' | jq .UpdateAvailable) - if [[ "${UPDATE_AVAILABLE}" == "true" ]]; then + update_available=$(curl -s -X 'GET' "http://localhost:19200/api/status/update-available" -H 'accept: application/json' | jq .UpdateAvailable) + if [[ "${update_available}" == "true" ]]; then msg_info "Stopping $APP" systemctl stop fileflows msg_ok "Stopped $APP" diff --git a/install/fileflows-install.sh b/install/fileflows-install.sh index ca2d8440f..b937c58dd 100644 --- a/install/fileflows-install.sh +++ b/install/fileflows-install.sh @@ -103,8 +103,8 @@ msg_ok "Setup ${APPLICATION}" msg_info "Setting ffmpeg variables in fileflows" wait_for_api -FFMPEG_UID=$(curl -s -X 'GET' "http://localhost:19200/api/variable/name/ffmpeg" -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') +ffmpeg_uid=$(curl -s -X 'GET' "http://localhost:19200/api/variable/name/ffmpeg" -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') $STD curl -s -X 'DELETE' \ "http://localhost:19200/api/variable" \ @@ -112,25 +112,25 @@ $STD curl -s -X 'DELETE' \ -H 'Content-Type: application/json' \ -d "{ \"Uids\": [ - \"$FFMPEG_UID\", - \"$FFPROBE_UID\" + \"$ffmpeg_uid\", + \"$ffprobe_uid\" ] }" -FFMPEG_PATH=$(which ffmpeg) -FFPROBE_PATH=$(which ffprobe) +ffmpeg_path=$(which ffmpeg) +ffprobe_path=$(which ffprobe) $STD curl -s -X 'POST' \ "http://localhost:19200/api/variable" \ -H 'accept: */*' \ -H 'Content-Type: application/json' \ - -d "{\"Name\":\"ffmpeg\",\"Value\":\"$FFMPEG_PATH\"}" + -d "{\"Name\":\"ffmpeg\",\"Value\":\"$ffmpeg_path\"}" $STD curl -s -X 'POST' \ "http://localhost:19200/api/variable" \ -H 'accept: */*' \ -H 'Content-Type: application/json' \ - -d "{\"Name\":\"ffprobe\",\"Value\":\"$FFPROBE_PATH\"}" + -d "{\"Name\":\"ffprobe\",\"Value\":\"$ffprobe_path\"}" msg_ok "ffmpeg and ffprobe variables have been updated successfully."