Skip to content

Commit

Permalink
Update allsky.sh: Use more specific statuses
Browse files Browse the repository at this point in the history
  • Loading branch information
EricClaeys authored Feb 1, 2025
1 parent 112ed2c commit 21d37d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions allsky.sh
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ read -r CC_TYPE CC_NUMBER CC_MODEL <<<"${CCM}"
if ! echo -e "${CCM}" | grep --silent "${CAM}" ; then
# Something changed. validate_camera() displays the error message.
if ! validate_camera "${CC_TYPE}" "${CC_MODEL}" "${CC_NUMBER}" ; then
set_allsky_status "${ALLSKY_STATUS_SEE_WEBUI}"
set_allsky_status "${ALLSKY_STATUS_CAMERA_CHANGED}"
IMAGE_MSG="${ERROR_MSG_PREFIX}"
IMAGE_MSG+="The camera changed."
IMAGE_MSG+="\nCheck Camera Type\n& Model in the WebUI."
Expand Down Expand Up @@ -370,7 +370,7 @@ if [[ ${RETCODE} -eq ${EXIT_RESTARTING} ]]; then
else
NOTIFICATION_TYPE="Restarting"
fi
set_allsky_status "${ALLSKY_STATUS_STOPPED}"
set_allsky_status "${ALLSKY_STATUS_RESTARTING}"
doExit 0 "${NOTIFICATION_TYPE}" # use 0 so the service is restarted
fi

Expand Down

0 comments on commit 21d37d2

Please sign in to comment.