mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-21 08:27:38 +00:00
upgraded. Now works.
This commit is contained in:
13
docker/rootfs/etc/cont-init.d/03_timezone.sh
Normal file
13
docker/rootfs/etc/cont-init.d/03_timezone.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
# shellcheck shell=bash
|
||||
|
||||
log() {
|
||||
echo -e "${BLUE}[cont-init.d] ${RED}$(basename "$0")${CYAN}>>>${RESET} $*"
|
||||
}
|
||||
|
||||
|
||||
if [ -n "${TZ}" ]; then
|
||||
log "Setting timezone to ${TZ}"
|
||||
echo "${TZ}" > /etc/timezone
|
||||
ln -sf "/usr/share/zoneinfo/${TZ}" /etc/localtime
|
||||
fi
|
Reference in New Issue
Block a user