11 lines
184 B
Bash
Executable File
11 lines
184 B
Bash
Executable File
#!/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 "$@"
|