Skip to content
Permalink
e7679b6dde
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
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