From 1a68c0c7505dfbbb01dff08efeb641819431f486 Mon Sep 17 00:00:00 2001 From: Eric Claeys <83164203+EricClaeys@users.noreply.github.com> Date: Sat, 20 Jul 2024 15:50:12 -0600 Subject: [PATCH] Update installUpgradeFunctions.sh: only run postData.sh if the local Website is in use --- scripts/installUpgradeFunctions.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/installUpgradeFunctions.sh b/scripts/installUpgradeFunctions.sh index a918d0090..89dd4fcec 100644 --- a/scripts/installUpgradeFunctions.sh +++ b/scripts/installUpgradeFunctions.sh @@ -535,10 +535,12 @@ function prepare_local_website() cp "${REPO_WEBSITE_CONFIGURATION_FILE}" "${ALLSKY_WEBSITE_CONFIGURATION_FILE}" replace_website_placeholders "local" "${ALLSKY_WEBSITE_CONFIGURATION_FILE}" + else + # If we had to create a default config file, we're not using the local Website + # so don't try to upload anything. + # Only want error messages. + "${ALLSKY_SCRIPTS}/postData.sh" > /dev/null fi - - # Only want error messages. - "${ALLSKY_SCRIPTS}/postData.sh" > /dev/null }