From 47b6cffff375f9f5e2687437fb4a65255138a562 Mon Sep 17 00:00:00 2001 From: Eric Claeys <83164203+EricClaeys@users.noreply.github.com> Date: Mon, 13 Nov 2023 18:13:02 -0600 Subject: [PATCH] Update install.sh: only run "activate" on bookworm --- install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index cea194f93..50f74e0dd 100755 --- a/install.sh +++ b/install.sh @@ -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