Tuomo Soini
2004-Jun-02 09:48 UTC
[Shorewall-devel] Minor patch to install.sh to make it honor environment variables
Just something I patch in my rpm set to make shorewall configurable. -- Tuomo Soini <tis@foobar.fi> Linux and network services +358 40 5240030 Foobar Oy <http://foobar.fi/> -------------- next part -------------- --- shorewall-2.0.2d/install.sh.orig 2004-05-28 03:17:01.000000000 +0300 +++ shorewall-2.0.2d/install.sh 2004-05-30 01:08:00.000000000 +0300 @@ -87,11 +87,20 @@ # RUNLEVELS is the chkconfig parmeters for firewall # ARGS is "yes" if we''ve already parsed an argument # -DEST="/etc/init.d" -INIT="shorewall" -RUNLEVELS="" ARGS="" +if [ -z "$DEST" ] ; then + DEST="/etc/init.d" +fi + +if [ -z "$INIT" ] ; then + INIT="shorewall" +fi + +if [ -z "$RUNLEVELS" ] ; then + RUNLEVELS="" +fi + if [ -z "$OWNER" ] ; then OWNER=root fi
Tom Eastep
2004-Jun-02 09:50 UTC
[Shorewall-devel] Minor patch to install.sh to make it honor environment variables
Tuomo Soini wrote:> Just something I patch in my rpm set to make shorewall configurable.Thanks! -Tom -- Tom Eastep \ Nothing is foolproof to a sufficiently talented fool Shoreline, \ http://shorewall.net Washington USA \ teastep@shorewall.net