From 09bc30f4d698a25f84fe499f5bdff175e2679f95d43b071bee4b06169975cf1f Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 20 Feb 2014 16:17:47 +0000 Subject: [PATCH] Accepting request 223249 from home:oertel:branches:Base:System - test for existence before trying to modify /etc/sysconfig/clock OBS-URL: https://build.opensuse.org/request/show/223249 OBS-URL: https://build.opensuse.org/package/show/Base:System/post-build-checks?expand=0&rev=95 --- post-build-checks.changes | 5 +++++ post-build-checks.spec | 2 ++ 2 files changed, 7 insertions(+) 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