diff --git a/aaa_base.changes b/aaa_base.changes index 2a8df18..13090e9 100644 --- a/aaa_base.changes +++ b/aaa_base.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Mar 9 17:21:41 CET 2009 - ro@suse.de + +- touch and chmod some files only if they do not exist before + leave them alone otherwise + ------------------------------------------------------------------- Wed Mar 4 11:30:08 CET 2009 - meissner@suse.de diff --git a/aaa_base.post b/aaa_base.post index 745721d..9ee498d 100644 --- a/aaa_base.post +++ b/aaa_base.post @@ -166,17 +166,25 @@ touch etc/mtab if test ! -d var/log ; then mkdir -p var/log fi -touch var/log/faillog -chmod 600 var/log/faillog -touch root/.bash_history -chmod 600 root/.bash_history -chown root:root var/log/faillog -touch var/log/lastlog -chmod 644 var/log/lastlog -chown root:tty var/log/lastlog -touch var/log/wtmp -chmod 664 var/log/wtmp -chown root:tty var/log/wtmp +if test ! -e var/log/faillog ; then + touch var/log/faillog + chmod 600 var/log/faillog + chown root:root var/log/faillog +fi +if test ! -e root/.bash_history ; then + touch root/.bash_history + chmod 600 root/.bash_history +fi +if test ! -e var/log/lastlog ; then + touch var/log/lastlog + chmod 644 var/log/lastlog + chown root:tty var/log/lastlog +fi +if test ! -e var/log/wtmp ; then + touch var/log/wtmp + chmod 664 var/log/wtmp + chown root:tty var/log/wtmp +fi if test -e usr/sbin/usrdel.local -a ! -e usr/sbin/userdel.local ; then cp usr/sbin/usrdel.local usr/sbin/userdel.local fi diff --git a/aaa_base.spec b/aaa_base.spec index 5fb4c32..02e837c 100644 --- a/aaa_base.spec +++ b/aaa_base.spec @@ -28,7 +28,7 @@ Recommends: cron logrotate PreReq: /usr/bin/sed /usr/bin/grep /bin/mv /bin/cat /bin/ls /bin/date /usr/bin/cmp /bin/fillup /sbin/insserv udev net-tools AutoReqProv: on Version: 11.2 -Release: 14 +Release: 15 Summary: SUSE Linux Base Package BuildRoot: %{_tmppath}/%{name}-%{version}-build Source: aaa_base.tar.bz2 @@ -139,6 +139,9 @@ rm -f /root/.gnupg/secring.gpg.aaa_save %defattr(-,root,root) %changelog +* Mon Mar 09 2009 ro@suse.de +- touch and chmod some files only if they do not exist before + leave them alone otherwise * Wed Mar 04 2009 meissner@suse.de - MALLOC_CHECK_=3 (bnc#481582) * Mon Feb 23 2009 ro@suse.de