Skip to content

Commit

Permalink
Update installUpgradeFunctions.sh: only run postData.sh if the local …
Browse files Browse the repository at this point in the history
…Website is in use
  • Loading branch information
EricClaeys authored Jul 20, 2024
1 parent fdb0b8e commit 1a68c0c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/installUpgradeFunctions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}


Expand Down

0 comments on commit 1a68c0c

Please sign in to comment.