Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update timelapse.sh: use unique names for sequence directories #2868

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions scripts/timelapse.sh
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ if [[ ${LOCK} == "true" ]]; then
--caused-by "${CAUSED_BY}" ; then
exit 5
fi
SEQUENCE_DIR="${ALLSKY_TMP}/sequence-lock-timelapse"
SEQUENCE_DIR="${ALLSKY_TMP}/sequence-lock-timelapse-$$"
else
SEQUENCE_DIR="${ALLSKY_TMP}/sequence-timelapse"
SEQUENCE_DIR="${ALLSKY_TMP}/sequence-timelapse-$$"
PID_FILE=""
fi

Expand Down Expand Up @@ -278,7 +278,14 @@ fi

# timelapse is uploaded via generateForDay.sh (usually via endOfNight.sh), which called us.

[[ ${DEBUG} -ge 2 ]] && echo -e "${ME}: ${GREEN}Timelapse in ${OUTPUT_FILE}${NC}"
if [[ ${DEBUG} -ge 2 ]]; then
if [[ ${IS_MINI} == "true" ]]; then
M="Mini t"
else
M="T"
fi
echo -e "${ME}: ${GREEN}${M}imelapse in ${OUTPUT_FILE}${NC}"
fi

[[ -n ${PID_FILE} ]] && rm -f "${PID_FILE}"

Expand Down