rename website root envvar

This commit is contained in:
Clemens 2024-03-15 10:03:36 +01:00
parent 889b95f572
commit 56a08653e9
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@ ADD resources /tmp
ENV BUILDDIR="/etc/website" ENV BUILDDIR="/etc/website"
ENV SOURCEDIR="/etc/websitesource" ENV SOURCEDIR="/etc/websitesource"
ENV WEBSITE_ROOT="/var/www/html/website/" ENV WEBSITEROOT="/var/www/html/website/"
ENV HASHFILEDIR="/var/hashfile.d" ENV HASHFILEDIR="/var/hashfile.d"
RUN /tmp/install.sh RUN /tmp/install.sh

View file

@ -25,5 +25,5 @@ function build-website() {
} }
function move-website-files-to-target() { function move-website-files-to-target() {
(cd $BUILDDIR; dir=$(ls); cd $dir; rsync -ru --exclude-from "/etc/exclude.pattern" --delete target/html/* $WEBSITE_ROOT;) (cd $BUILDDIR; dir=$(ls); cd $dir; rsync -ru --exclude-from "/etc/exclude.pattern" --delete target/html/* $WEBSITEROOT;)
} }