Setting the Timezones across all VPS's (OpenVZ)
All of our servers are currently based off of the Phoenix, Arizona, USA Timezone. This script allows this conversion from each HN (Host Node):
1
2
3
4
5
6
7
8
9
#!/bin/bash
for i in `vzlist | awk '{print $1}' | grep -v CTID`
do
vzctl exec $f rm -f /etc/localtime 2>/dev/null
vzctl exec $f ln -s /usr/share/zoneinfo/America/Phoenix /etc/localtime
done
This post is licensed under CC BY 4.0 by the author.