fix: lowercase variables
This commit is contained in:
parent
e238be2d3c
commit
32c28e0aa7
@ -30,8 +30,8 @@ function update_script() {
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
UPDATE_AVAILABLE=$(curl -s -X 'GET' "http://localhost:19200/api/status/update-available" -H 'accept: application/json' | jq .UpdateAvailable)
|
update_available=$(curl -s -X 'GET' "http://localhost:19200/api/status/update-available" -H 'accept: application/json' | jq .UpdateAvailable)
|
||||||
if [[ "${UPDATE_AVAILABLE}" == "true" ]]; then
|
if [[ "${update_available}" == "true" ]]; then
|
||||||
msg_info "Stopping $APP"
|
msg_info "Stopping $APP"
|
||||||
systemctl stop fileflows
|
systemctl stop fileflows
|
||||||
msg_ok "Stopped $APP"
|
msg_ok "Stopped $APP"
|
||||||
|
@ -103,8 +103,8 @@ 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://localhost: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')
|
||||||
FFPROBE_UID=$(curl -s -X 'GET' "http://localhost: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')
|
||||||
|
|
||||||
$STD curl -s -X 'DELETE' \
|
$STD curl -s -X 'DELETE' \
|
||||||
"http://localhost:19200/api/variable" \
|
"http://localhost:19200/api/variable" \
|
||||||
@ -112,25 +112,25 @@ $STD curl -s -X 'DELETE' \
|
|||||||
-H 'Content-Type: application/json' \
|
-H 'Content-Type: application/json' \
|
||||||
-d "{
|
-d "{
|
||||||
\"Uids\": [
|
\"Uids\": [
|
||||||
\"$FFMPEG_UID\",
|
\"$ffmpeg_uid\",
|
||||||
\"$FFPROBE_UID\"
|
\"$ffprobe_uid\"
|
||||||
]
|
]
|
||||||
}"
|
}"
|
||||||
|
|
||||||
FFMPEG_PATH=$(which ffmpeg)
|
ffmpeg_path=$(which ffmpeg)
|
||||||
FFPROBE_PATH=$(which ffprobe)
|
ffprobe_path=$(which ffprobe)
|
||||||
|
|
||||||
$STD curl -s -X 'POST' \
|
$STD curl -s -X 'POST' \
|
||||||
"http://localhost:19200/api/variable" \
|
"http://localhost:19200/api/variable" \
|
||||||
-H 'accept: */*' \
|
-H 'accept: */*' \
|
||||||
-H 'Content-Type: application/json' \
|
-H 'Content-Type: application/json' \
|
||||||
-d "{\"Name\":\"ffmpeg\",\"Value\":\"$FFMPEG_PATH\"}"
|
-d "{\"Name\":\"ffmpeg\",\"Value\":\"$ffmpeg_path\"}"
|
||||||
|
|
||||||
$STD curl -s -X 'POST' \
|
$STD curl -s -X 'POST' \
|
||||||
"http://localhost:19200/api/variable" \
|
"http://localhost:19200/api/variable" \
|
||||||
-H 'accept: */*' \
|
-H 'accept: */*' \
|
||||||
-H 'Content-Type: application/json' \
|
-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."
|
msg_ok "ffmpeg and ffprobe variables have been updated successfully."
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user