From 8c98c3eb8fc696914da2e462c68356bc635b151c Mon Sep 17 00:00:00 2001 From: Clemens Date: Fri, 2 Dec 2022 11:33:27 +0100 Subject: [PATCH] [SKIP-CI] Fix typo --- infrastructure/c4k-website-build/image/Dockerfile | 2 +- infrastructure/c4k-website-build/image/resources/entrypoint.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/infrastructure/c4k-website-build/image/Dockerfile b/infrastructure/c4k-website-build/image/Dockerfile index b24df8e..02615d1 100644 --- a/infrastructure/c4k-website-build/image/Dockerfile +++ b/infrastructure/c4k-website-build/image/Dockerfile @@ -6,6 +6,6 @@ ADD resources /tmp ENV SOURCEDIR="/etc/websitesource" ENV BUILDDIR="/etc/website" ENV WEBSITEROOT="/var/www/html/website/" -ENV HASHFILEDIR="/data/hasfiles/" +ENV HASHFILEDIR="/data/hashfiles" RUN /tmp/install.sh diff --git a/infrastructure/c4k-website-build/image/resources/entrypoint.sh b/infrastructure/c4k-website-build/image/resources/entrypoint.sh index 9387560..6d8e90a 100755 --- a/infrastructure/c4k-website-build/image/resources/entrypoint.sh +++ b/infrastructure/c4k-website-build/image/resources/entrypoint.sh @@ -13,7 +13,6 @@ source /usr/local/bin/functions.sh filename="website.zip" hashfilename="hashfile" -touch $HASHFILEDIR/$hashfilename # create empty hashfile # download website data @@ -32,6 +31,7 @@ get-website-data $filename echo "Check for new content" currentHash=$( print-hash-from-file $filename ) +touch $HASHFILEDIR/$hashfilename if [[ $currentHash == $(cat $HASHFILEDIR/$hashfilename) ]] then echo "Nothing to do"