traefik/bin/docker-entrypoint.sh
Jason 28a64f781b
🦈🏠🐜 Initial Commit 🐜🦈🏠
2022-02-14 16:47:44 -05:00

10 lines
375 B
Bash
Executable File

#!/usr/bin/env bash
export TZ="${TZ:-America/New_York}"
export HOSTNAME="${HOSTNAME:-casjaysdev-traefix}"
[ -n "${TZ}" ] && echo "${TZ}" >/etc/timezone
[ -n "${HOSTNAME}" ] && echo "${HOSTNAME}" >/etc/hostname
[ -n "${HOSTNAME}" ] && echo "127.0.0.1 $HOSTNAME localhost" >/etc/hosts
[ -f "/usr/share/zoneinfo/${TZ}" ] && ln -sf "/usr/share/zoneinfo/${TZ}" "/etc/localtime"