Use HOMEPAGE_BUILDTIME to revalidate container restart/recreate

This commit is contained in:
shamoon 2023-04-04 22:47:17 -07:00
parent a42c50f1cc
commit 6701e3bd77
4 changed files with 11 additions and 9 deletions

View file

@ -10,6 +10,8 @@ export PGID=${PGID:-0}
# while also supporting the lscr.io /config directory
[ ! -d "/app/config" ] && ln -s /config /app/config
export HOMEPAGE_BUILDTIME=$(date +%s)
# Set privileges for /app but only if pid 1 user is root and we are dropping privileges.
# If container is run as an unprivileged user, it means owner already handled ownership setup on their own.
# Running chown in that case (as non-root) will cause error