Accepting request 223259 from Base:System

- test for existence before trying to modify /etc/sysconfig/clock (forwarded request 223249 from oertel)

OBS-URL: https://build.opensuse.org/request/show/223259
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/post-build-checks?expand=0&rev=77
This commit is contained in:
Tomáš Chvátal 2014-02-28 15:21:27 +00:00 committed by Git OBS Bridge
commit 3f835abbc2
2 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -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