I am using a local timezone (non-UTC) on my server. Whenever I update the tzdata via yum, the system resets /etc/localtime to the default file and I am back on UTC.
While #date still shows the proper timezone, CRON and other services switch to UTC.
How can I prevent that?
/etc/localtime
file and contains no post-install script fiddling with it. (git.centos.org/blob/!!rpms!tzdata.git/…)$ rpm -q --triggeredby tzdata
, and you'll see the glibc-common package has a script triggered by tzdata update. Specifically, it runs/usr/sbin/tzdata-update
. (This is on CentOS 6 and earlier; things are different with systemd.)ls -l /etc/localtime
andcat /etc/sysconfic/clock
?