2214c7c4efdff388e8af61e4e62812a388164f73
[ext/instance-debootstrap.git] / examples / hooks / timezone
1 #!/bin/sh
2 #
3 # This is an example script that sets the timezone to a given default, or to the one of the host is none is configured
4
5 if [ -r confdata/timezone ]
6 then    cp confdata/timezone $TARGET/etc/
7 else    cp /etc/timezone $TARGET/etc/
8 fi
9
10 chroot $TARGET dpkg-reconfigure --frontend noninteractive tzdata
11