band of brothers logo warphammer logo

OpenVZ – cambiar timezone

December 15th, 2009 por Rubén Ortiz

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ó :)



Deja tu comentario

Atención: La moderación de comentarios está activa, tu comentario estó en proceso de moderación. No hace falta que introduzcas tu comentario más veces.