Checks for host with id of 0 in the reserve queue and manually post them to the main queue

This commit is contained in:
Ken Fallon 2024-03-03 13:50:51 +01:00
parent 3aad261e8a
commit 2299a32c2b

View File

@ -16,6 +16,13 @@ do
echo "ERROR: \"${shownotes}\" not found" echo "ERROR: \"${shownotes}\" not found"
exit 1 exit 1
fi fi
host_id="$( jq --raw-output '.host.Host_ID' "${shownotes}" )"
if [ "${host_id}" -eq "0" ]
then
echo "ERROR: New host detected \"${host_id}\" post the first show to the regular queue."
exit 1
fi
metadata_url="$( jq --raw-output '.metadata.url' "${shownotes}" )" metadata_url="$( jq --raw-output '.metadata.url' "${shownotes}" )"
if [ -n "${metadata_url}" ] if [ -n "${metadata_url}" ]
then then