From 5bc88acfdd374a51b14ed677b0fcb78cc727b16a Mon Sep 17 00:00:00 2001 From: saq Date: Wed, 25 Jul 2001 16:30:44 +0000 Subject: [PATCH] - use macros in %{pre,post}{,un} - need rebuilt rpm (with new macros.pld) to build these Changed files: firewall-init.spec -> 1.18 --- firewall-init.spec | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/firewall-init.spec b/firewall-init.spec index 956dd43..c25b28b 100644 --- a/firewall-init.spec +++ b/firewall-init.spec @@ -41,12 +41,10 @@ for i in input output forward; do done %post -/sbin/chkconfig --add firewall +NAME=firewall; %chkconfig_add -%postun -if [ "$1" = "0" ]; then - /sbin/chkconfig --del firewall -fi +%preun +NAME=firewall; %chkconfig_del %clean rm -rf $RPM_BUILD_ROOT -- 2.43.0