myos/docker/x2go/xfce-debian/setup_timezone.sh

8 lines
175 B
Bash
Executable File

#!/bin/sh
[ -n "${DEBUG}" ] && set -x
set -eu
TZ="${TZ:-UTC}"
printf "%s\n" "${TZ}" > /etc/timezone
unlink /etc/localtime && ln -s "/usr/share/zoneinfo/${TZ}" /etc/localtime