From a71b61c238ba32a73e1f528cfb6e7a62d10930bd Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Wed, 15 Feb 2017 10:16:53 -0800 Subject: [PATCH] Delete the deprecated macros and actions during install Signed-off-by: Tom Eastep --- Shorewall/install.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Shorewall/install.sh b/Shorewall/install.sh index cc9ef41d9..38c43cf3f 100755 --- a/Shorewall/install.sh +++ b/Shorewall/install.sh @@ -481,6 +481,16 @@ if [ -z "$first_install" ]; then delete_file ${DESTDIR}${MANDIR}/man5/$PRODUCT/${PRODUCT}-stoppedrules delete_file ${DESTDIR}${MANDIR}/man5/$PRODUCT/${PRODUCT}-notrack delete_file ${DESTDIR}${MANDIR}/man5/$PRODUCT/${PRODUCT}-blacklist + + if [ $PRODUCT = shorewall ]; then + # + # Delete deprecated macros and actions + # + delete_file ${DESTDIR}${SHAREDIR}/shorewall/macro.SNMPTrap + delete_file ${DESTDIR}${SHAREDIR}/shorewall/action.A_REJECT + delete_file ${DESTDIR}${SHAREDIR}/shorewall/action.Drop + delete_file ${DESTDIR}${SHAREDIR}/shorewall/action.Reject + fi fi #