Correct uninstall scripts for Shorewall and Shorewall6

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2012-01-04 08:07:27 -08:00
parent ed1ae53c24
commit 9353788285
2 changed files with 21 additions and 5 deletions

View File

@ -114,7 +114,6 @@ rm -rf /var/lib/shorewall
rm -rf /var/lib/shorewall-*.bkout
rm -rf $PERLLIB}/Shorewall/*
rm -rf ${LIBEXEC}/shorewall
rm -rf /usr/share/shorewall/Macros
rm -rf /usr/share/shorewall/configfiles/
rm -rf /usr/share/shorewall/Samples/
rm -rf /usr/share/shorewall/Shorewall/
@ -126,8 +125,17 @@ rm -f /usr/share/shorewall/helpers
rm -f /usr/share/shorewall/action*
rm -f /usr/share/shorewall/init
rm -rf /usr/share/shorewall-*.bkout
rm -rf /usr/share/man/man5/shorewall*
rm -rf /usr/share/man/man8/shorewall*
for f in /usr/share/man/man5/shorewall* /usr/share/man/man8/shorewall*; do
case $f in
shorewall6*|shorewall-lite*)
;;
*)
rm -f $f
;;
esac
done
rm -f /etc/logrotate.d/shorewall
rm -f /lib/systemd/system/shorewall.service

View File

@ -113,8 +113,16 @@ rm -rf /var/lib/shorewall6-*.bkout
rm -rf ${LIBEXEC}/shorewall6
rm -rf /usr/share/shorewall6
rm -rf /usr/share/shorewall6-*.bkout
rm -rf /usr/share/man/man5/shorewall6*
rm -rf /usr/share/man/man8/shorewall6*
for f in /usr/share/man/man5/shorewall6* /usr/share/man/man8/shorewall6*; do
case $f in
shorewall6-lite*)
;;
*)
rm -f $f
esac
done
rm -f /etc/logrotate.d/shorewall6
rm -f /lib/systemd/system/shorewall6.service