Files
jitsi-meet-deployment/base/rootfs/etc/cont-init.d/01-set-timezone
Saúl Ibarra Corretgé 8e7ea34c50 base: fix setting timezone
2020-05-26 23:23:43 +02:00

11 lines
267 B
Plaintext

#!/usr/bin/with-contenv bash
if [[ ! -z "$TZ" ]]; then
if [[ -f /usr/share/zoneinfo/$TZ ]]; then
ln -sf /usr/share/zoneinfo/$TZ /etc/localtime
echo "$TZ" > /etc/timezone
else
echo "WARNING: $TZ is not a valid time zone."
fi
fi