diff --git a/post-build-checks.changes b/post-build-checks.changes index f91c779..e6cd15e 100644 --- a/post-build-checks.changes +++ b/post-build-checks.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Feb 20 16:29:33 CET 2014 - ro@suse.de + +- test for existence before trying to modify /etc/sysconfig/clock + ------------------------------------------------------------------- Tue Feb 4 14:19:50 UTC 2014 - ro@suse.com diff --git a/post-build-checks.spec b/post-build-checks.spec index c353730..a3d111c 100644 --- a/post-build-checks.spec +++ b/post-build-checks.spec @@ -87,7 +87,9 @@ if ! test -e /.buildenv; then exit 0 fi sed -i -e "s@^PERMISSION_SECURITY=.*@PERMISSION_SECURITY=\"secure\"@" /etc/sysconfig/security +if [ -f /etc/sysconfig/clock ] ; then sed -i -e "s@^TIMEZONE=.*@TIMEZONE=\"UTC\"@" /etc/sysconfig/clock +fi UNAME=/bin/uname if test -f /usr/bin/uname ; then UNAME=/usr/bin/uname