deployment improvments
This commit is contained in:
10
entrypoint.sh
Executable file
10
entrypoint.sh
Executable 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 "$@"
|
||||
Reference in New Issue
Block a user