Skip to content

Commit

Permalink
Update install.sh: only run "activate" on bookworm
Browse files Browse the repository at this point in the history
  • Loading branch information
EricClaeys authored Nov 14, 2023
1 parent 5820e2f commit 47b6cff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2198,8 +2198,12 @@ restore_prior_files()
if [[ -d ${PRIOR_CONFIG_DIR}/modules ]]; then
display_msg --log progress "${ITEM}"

if [[ ${PI_OS} == "bookworm" ]]; then
#shellcheck disable=SC1090,SC1091
source "${ALLSKY_HOME}/venv/bin/activate"
fi
# Copy the user's prior data to the new file which may contain new fields.
if ! "${ALLSKY_SCRIPTS}"/flowupgrade.py --prior "${PRIOR_CONFIG_DIR}" --config "${ALLSKY_CONFIG}" ; then
if ! python3 "${ALLSKY_SCRIPTS}"/flowupgrade.py --prior "${PRIOR_CONFIG_DIR}" --config "${ALLSKY_CONFIG}" ; then
display_msg --log error "Copying 'modules' directory had problems."
fi
else
Expand Down

0 comments on commit 47b6cff

Please sign in to comment.