2023-03-20 06:56:52 +00:00
#!/command/with-contenv bash
# shellcheck shell=bash
set -e
2024-01-09 23:32:12 +00:00
. /usr/bin/common.sh
2023-03-20 06:56:52 +00:00
if [ " $( id -u) " != "0" ] ; then
log_fatal "This docker container must be run as root, do not specify a user.\nYou can specify PUID and PGID env vars to run processes as that user and group after initialization."
fi
2023-05-04 00:03:06 +00:00
if [ " $DEBUG " = "true" ] ; then
set -x
fi
. /etc/s6-overlay/s6-rc.d/prepare/10-usergroup.sh
2023-03-20 06:56:52 +00:00
. /etc/s6-overlay/s6-rc.d/prepare/20-paths.sh
. /etc/s6-overlay/s6-rc.d/prepare/30-ownership.sh
. /etc/s6-overlay/s6-rc.d/prepare/40-dynamic.sh
. /etc/s6-overlay/s6-rc.d/prepare/50-ipv6.sh
. /etc/s6-overlay/s6-rc.d/prepare/60-secrets.sh
. /etc/s6-overlay/s6-rc.d/prepare/90-banner.sh