OpenVZ – cambiar timezone

openvz_logo

http://wiki.openvz.org/Timezone

During the distribution (redhat/centos) installer, you choose the timezone for your HN. The container template has its own preconfigured timezone. So, it is very possible for the zones to differ.

#! /bin/bash
for f in $(ls /vz/private)
do
vzctl exec $f rm -f /etc/localtime 2>/dev/null
vzctl exec $f ln -s /usr/share/zoneinfo/Europe/Madrid /etc/localtime
done

Y funcion贸 馃檪

Leave a Reply

Your email address will not be published. Required fields are marked *