Skip to content

Commit

Permalink
Update installUpgradeFunctions.sh: couple fixes
Browse files Browse the repository at this point in the history
1. cd $ALLSKY_WEBSITE so pathname are relative.
2. look for the basename of $CHECKSUM_FILE
  • Loading branch information
EricClaeys authored Aug 30, 2024
1 parent 8fb3f34 commit f0d25ec
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 @@ -1038,7 +1038,9 @@ function get_php_setting() {
# Get the checksum of all Website files, not including the ones the user creates or updates.
function get_website_checksums()
{
{
(
cd "${ALLSKY_WEBSITE}" || exit 1

# Add important image files.
echo loading.jpg
echo allsky-logo.png
Expand All @@ -1048,6 +1050,6 @@ function get_website_checksums()
# Get all non-image files except for the ones the user creates/updates.
find . -type f '!' '(' -name '*.jpg' -or -name '*.png' -or -name '*.mp4' ')' |
sed 's;^./;;' |
grep -E -v "myFiles/|${ALLSKY_WEBSITE_CONFIGURATION_NAME}|${CHECKSUM_FILE}"
} | "${ALLSKY_UTILITIES}/getChecksum.php"
grep -E -v "myFiles/|${ALLSKY_WEBSITE_CONFIGURATION_NAME}|$( basename "${CHECKSUM_FILE}" )"
) | "${ALLSKY_UTILITIES}/getChecksum.php"
}

0 comments on commit f0d25ec

Please sign in to comment.