deployment improvments

This commit is contained in:
2025-10-16 01:50:43 +02:00
parent f4c5dd483d
commit 62719ef9c3
10 changed files with 192 additions and 38 deletions

10
entrypoint.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -euo pipefail
USER_ID="${USERID:-}"
if [[ -n "${USER_ID}" && "${USER_ID}" != "$(id -u www-data)" ]]; then
usermod --uid "${USER_ID}" www-data
fi
exec "$@"