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:
parent
a7a3a0a326
commit
435d59deef
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user