mirror of
https://github.com/casjaysdevdocker/traefik
synced 2025-01-18 12:34:23 -05:00
10 lines
375 B
Bash
Executable File
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"
|