forked from pool/timezone
Accepting request 176195 from Base:System
- /etc/localtime must be a symlink to /usr/share/zoneinfo/$TIMEZONE so systemd-timedated and its command line tool timedatectl can work correctly. Yast already does the right thing. (forwarded request 176102 from elvigia) OBS-URL: https://build.opensuse.org/request/show/176195 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/timezone?expand=0&rev=74
This commit is contained in:
parent
ab4b3ddbbb
commit
7f11b6fbcd
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Apr 29 20:47:33 UTC 2013 - crrodriguez@opensuse.org
|
||||||
|
|
||||||
|
- /etc/localtime must be a symlink to /usr/share/zoneinfo/$TIMEZONE
|
||||||
|
so systemd-timedated and its command line tool timedatectl
|
||||||
|
can work correctly. Yast already does the right thing.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Apr 20 16:41:02 UTC 2013 - crrodriguez@opensuse.org
|
Sat Apr 20 16:41:02 UTC 2013 - crrodriguez@opensuse.org
|
||||||
|
|
||||||
|
@ -92,9 +92,7 @@ if [ -f /etc/sysconfig/clock ];
|
|||||||
then
|
then
|
||||||
. /etc/sysconfig/clock
|
. /etc/sysconfig/clock
|
||||||
if [ -n "$TIMEZONE" -a -f /etc/localtime -a -f /usr/share/zoneinfo/$TIMEZONE ]; then
|
if [ -n "$TIMEZONE" -a -f /etc/localtime -a -f /usr/share/zoneinfo/$TIMEZONE ]; then
|
||||||
new=$(mktemp /etc/localtime.XXXXXXXX) || exit 1
|
ln -sf /usr/share/zoneinfo/$TIMEZONE /etc/localtime
|
||||||
cp -l /usr/share/zoneinfo/$TIMEZONE $new 2>/dev/null || cp -fp /usr/share/zoneinfo/$TIMEZONE $new
|
|
||||||
mv -f $new /etc/localtime
|
|
||||||
else
|
else
|
||||||
[ ! -f /etc/localtime ] || echo "WARNING: Not updating /etc/localtime with new zone file" >&2
|
[ ! -f /etc/localtime ] || echo "WARNING: Not updating /etc/localtime with new zone file" >&2
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user