Skip to content
Permalink
8a29254656
Go to file
 
 
Cannot retrieve contributors at this time
executable file 13 lines (12 sloc) 411 Bytes
#!/bin/bash
if [[ -n $TIMEZONE ]]; then
echo "*** Setting timezone to '$TIMEZONE'"
if [[ -e /usr/share/zoneinfo/$TIMEZONE ]]; then
unlink /etc/localtime
ln -s /usr/share/zoneinfo/$TIMEZONE /etc/localtime
echo "date (UTC) is: $(date -u)"
echo "date (current timezone) is $(date)"
else
echo "Error: time zone '$TIMEZONE' is unknown; not setting it."
fi
fi
You can’t perform that action at this time.