From b1461a478eb0f1b3b0acddc565af70bd5c00bd5e Mon Sep 17 00:00:00 2001 From: teastep Date: Fri, 20 Sep 2002 00:53:19 +0000 Subject: [PATCH] Only enable startup on initial installation git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@251 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall/shorewall.spec | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Shorewall/shorewall.spec b/Shorewall/shorewall.spec index e593f5b04..f1c6761d5 100644 --- a/Shorewall/shorewall.spec +++ b/Shorewall/shorewall.spec @@ -42,19 +42,21 @@ rm -rf $RPM_BUILD_ROOT %post if [ $1 -eq 1 ]; then - echo \ + echo \ "######################################################################## # REMOVE THIS FILE AFTER YOU HAVE CONFIGURED SHOREWALL # -########################################################################" > /etc/shorewall/startup_disabled -fi +########################################################################" \ + > /etc/shorewall/startup_disabled -if [ -x /sbin/insserv ]; then - /sbin/insserv /etc/rc.d/shorewall -elif [ -x /sbin/chkconfig ]; then - /sbin/chkconfig --add shorewall; + if [ -x /sbin/insserv ]; then + /sbin/insserv /etc/rc.d/shorewall + elif [ -x /sbin/chkconfig ]; then + /sbin/chkconfig --add shorewall; + fi fi %preun + if [ $1 = 0 ]; then if [ -x /sbin/insserv ]; then /sbin/insserv -r /etc/init.d/shorewall