File: timezone

package info (click to toggle)
ganeti-instance-debootstrap 0.17-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 240 kB
  • sloc: sh: 488; makefile: 54
file content (13 lines) | stat: -rwxr-xr-x 402 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
#
# This is an example script that sets the timezone to a given default,
# or to the one of the host is none is configured.

if [ -r confdata/timezone ]; then
  TZ=`cat "confdata/timezone"`
else
  TZ=`realpath --relative-to /usr/share/zoneinfo /etc/localtime`
fi

chroot $TARGET ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime
chroot $TARGET dpkg-reconfigure --frontend noninteractive tzdata