diff options
author | Bill Nottingham <notting@redhat.com> | 2011-08-31 18:00:12 -0400 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2011-08-31 18:00:12 -0400 |
commit | c2c581ca7de1fb90ec43a3edfa53a1dfce2705c4 (patch) | |
tree | 36f439cad6cd01725f842a7ec151f084a90f56a8 | |
parent | 84d0dadb52b1dfb4ecb01d1416c59da6a8af166c (diff) | |
download | initscripts-c2c581ca7de1fb90ec43a3edfa53a1dfce2705c4.tar initscripts-c2c581ca7de1fb90ec43a3edfa53a1dfce2705c4.tar.gz initscripts-c2c581ca7de1fb90ec43a3edfa53a1dfce2705c4.tar.bz2 initscripts-c2c581ca7de1fb90ec43a3edfa53a1dfce2705c4.tar.xz initscripts-c2c581ca7de1fb90ec43a3edfa53a1dfce2705c4.zip |
%ghost rc.local (but leave it around on upgrade) (#734268)
It will still be run if it's created, of course.
-rw-r--r-- | initscripts.spec | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/initscripts.spec b/initscripts.spec index 4a4b3a24..43f85c74 100644 --- a/initscripts.spec +++ b/initscripts.spec @@ -129,6 +129,10 @@ rm -f \ touch $RPM_BUILD_ROOT/etc/crypttab chmod 600 $RPM_BUILD_ROOT/etc/crypttab +rm -f $RPM_BUILD_ROOT/etc/rc.d/rc.local $RPM_BUILD_ROOT/etc/rc.local +touch $RPM_BUILD_ROOT/etc/rc.d/rc.local +chmod 755 $RPM_BUILD_ROOT/etc/rc.d/rc.local + %pre /usr/sbin/groupadd -g 22 -r -f utmp @@ -237,17 +241,17 @@ rm -rf $RPM_BUILD_ROOT %dir /etc/rc.d %dir /etc/rc.d/rc[0-9].d %config(missingok) /etc/rc.d/rc[0-9].d/* +%exclude /etc/rc.d/rc[0-9].d/*local %exclude /etc/rc.d/rc[0-9].d/*reboot %exclude /etc/rc.d/rc[0-9].d/*halt /etc/rc[0-9].d %dir /etc/rc.d/init.d -/etc/rc.local /etc/rc.d/init.d/* %exclude /etc/rc.d/init.d/halt %exclude /etc/rc.d/init.d/reboot %exclude /etc/rc.d/rc[0-9].d/*single %exclude /etc/rc.d/init.d/single -%config(noreplace) /etc/rc.d/rc.local +%ghost %verify(not md5 size mtime) %config(noreplace,missingok) /etc/rc.d/rc.local %config(noreplace) /etc/sysctl.conf %exclude /etc/profile.d/debug* /etc/profile.d/* |