fork from prologic/pages-server

This commit is contained in:
“xHuPo” 2024-09-14 12:00:17 +08:00
parent 9d86fd33c6
commit 839a429820
33 changed files with 865 additions and 2482 deletions

View file

@ -0,0 +1,17 @@
#!/bin/sh
set -e
if [ "$(id -u)" -eq 0 ]; then
[ -n "${PUID}" ] && usermod -u "${PUID}" nobody
[ -n "${PGID}" ] && groupmod -g "${PGID}" nobody
fi
printf "Configuring application...\n"
if [ "$(id -u)" -eq 0 ]; then
printf "Switching UID=%s and GID=%s\n" "$(id -u nobody)" "$(id -g nobody)"
exec su-exec nobody:nobody "$@"
else
exec "$@"
fi