Skip to content

Commit

Permalink
Update allsky.sh: remove log file BEFORE it's used
Browse files Browse the repository at this point in the history
  • Loading branch information
EricClaeys authored Sep 17, 2023
1 parent 769bdca commit 1b07b2a
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 @@ -217,6 +217,8 @@ mkdir "${ALLSKY_ABORTS_DIR}"
sudo chgrp "${WEBSERVER_GROUP}" "${ALLSKY_ABORTS_DIR}"
sudo chmod 775 "${ALLSKY_ABORTS_DIR}"

rm -f "${ALLSKY_NOTIFICATION_LOG}" # clear out any notificatons from prior runs.

# Optionally display a notification image.
if [[ ${USE_NOTIFICATION_IMAGES} == "true" ]]; then
# Can do this in the background to speed up startup.
Expand Down Expand Up @@ -262,8 +264,6 @@ fi

CAPTURE="capture_${CAMERA_TYPE}"

rm -f "${ALLSKY_NOTIFICATION_LOG}" # clear out any notificatons from prior runs.

# Clear up any flow timings
"${ALLSKY_SCRIPTS}/flow-runner.py" --cleartimings

Expand Down

0 comments on commit 1b07b2a

Please sign in to comment.