/usr/share/whereami/actions/settimezone is in whereami 0.3.34-0.4.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 | #!/bin/sh
#
# Set timezone - contributed by Itay Ben-Yaacov
#
timezone=$1
if [ -f /usr/share/zoneinfo/$timezone ]; then
echo $timezone > /etc/timezone
rm -f /etc/localtime && ln -sf /usr/share/zoneinfo/$timezone /etc/localtime
fi
|