3
0

Accepting request 25965 from home:michal-m:branches:Base:System

Copy from home:michal-m:branches:Base:System/post-build-checks via accept of submit request 25965 revision 2.
Request was accepted with message:
ok

OBS-URL: https://build.opensuse.org/request/show/25965
OBS-URL: https://build.opensuse.org/package/show/Base:System/post-build-checks?expand=0&rev=12
This commit is contained in:
Marcus Meissner 2009-12-16 00:10:38 +00:00 committed by Git OBS Bridge
parent a7a3a0a326
commit 435d59deef
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Dec 7 14:58:27 CET 2009 - mmarek@suse.cz
- do not mess with sysconfig files when installed in a live system
(no more missed appointments...).
-------------------------------------------------------------------
Thu Nov 5 15:48:37 CET 2009 - meissner@suse.de

View File

@ -68,6 +68,10 @@ done
rm -rf $RPM_BUILD_ROOT
%post
# do nothing when not in a build chroot
if ! test -e /.buildenv; then
exit 0
fi
sed -i -e "s@^PERMISSION_SECURITY=.*@PERMISSION_SECURITY=\"secure\"@" /etc/sysconfig/security
sed -i -e "s@^TIMEZONE=.*@TIMEZONE=\"UTC\"@" /etc/sysconfig/clock
if test -f /bin/uname -a ! -L /bin/uname ; then
@ -76,6 +80,9 @@ if test -f /bin/uname -a ! -L /bin/uname ; then
fi
%preun
if ! test -e /.buildenv; then
exit 0
fi
if test "$1" = 0 -a -f /bin/uname.bin ; then
mv /bin/uname.bin /bin/uname
fi