After uninstalling shorewall from the respective tarball files:
shorewall-init4.5.21-RC1, shorewall-4.5.21-RC1 and
shorewall-core-4.5.21-RC1 from my debian7 box.
The uninstall.sh script in shorewall-init-4.5.21-RC1 does not remove
the file /etc/network/if-post-down.d/shorewall which could lead to an
error like
"/etc/network/if-post-down.d/shorewall: 92: .: Can't open
/usr/share/shorewall/shorewallrc
run-parts: /etc/network/if-post-down.d/shorewall exited with return
code 2
/etc/network/if-post-down.d/shorewall: 92: .: Can't open
/usr/share/shorewall/shorewallrc
run-parts: /etc/network/if-post-down.d/shorewall exited with return
code 2"
Adding the following line to shorewall-init-4.5.21-RC1/uninstall.sh
eliminates this issue.
remove_file ${CONFDIR}/network/if-post-down.d/shorewall
now on shorewall-4.5.21-RC1 the init script and the file
/etc/default/shorewall are not automatically removed
Those two unremoved files can be automatically dealt with adding the
following lines in shorewall-4.5.21-RC1/uninstall.sh.
INITSCRIPT=${CONFDIR}/init.d/shorewall
if [ -f "$INITSCRIPT" ]; then
if mywhich updaterc.d ; then
updaterc.d shorewall remove
elif mywhich insserv ; then
insserv -r $INITSCRIPT
elif mywhich chkconfig ; then
chkconfig --del $(basename $INITSCRIPT)
elif mywhich systemctl ; then
systemctl disable shorewall
fi
remove_file $INITSCRIPT
fi
remove_file ${CONFDIR}/default/shorewall
MD
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users