mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-06 20:28:48 +00:00
Use HOMEPAGE_BUILDTIME to revalidate container restart/recreate
This commit is contained in:
parent
a42c50f1cc
commit
6701e3bd77
4 changed files with 11 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue