OpenVZ – cambiar 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)
vzctl exec $f rm -f /etc/localtime 2>/dev/null
vzctl exec $f ln -s /usr/share/zoneinfo/Europe/Madrid /etc/localtime

Y funcion贸 馃檪

Leave a Reply

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