diff --git a/Shorewall/uninstall.sh b/Shorewall/uninstall.sh index a342167b9..d54db6505 100755 --- a/Shorewall/uninstall.sh +++ b/Shorewall/uninstall.sh @@ -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 diff --git a/Shorewall6/uninstall.sh b/Shorewall6/uninstall.sh index 92f970274..5b9b26658 100755 --- a/Shorewall6/uninstall.sh +++ b/Shorewall6/uninstall.sh @@ -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