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"