From e548043e96182f2372e1839b16bde0ae2d268d42 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Wed, 6 Feb 2019 14:17:10 -0800 Subject: [PATCH] Remove modules files Signed-off-by: Tom Eastep --- Shorewall/install.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Shorewall/install.sh b/Shorewall/install.sh index f1a179be3..3698f0415 100755 --- a/Shorewall/install.sh +++ b/Shorewall/install.sh @@ -1241,6 +1241,14 @@ if [ $PRODUCT = shorewall ]; then rm -f ${DESTDIR}${SHAREDIR}/${PRODUCT}/deprecated/macro.SMTPTraps fi +# +# Remove unneeded modules files +# + +if [ -n "$first_install" ]; then + rm -f ${DESTDIR}${SHAREDIR}/${PRODUCT}/modules* +fi + if [ $configure -eq 1 -a -z "$DESTDIR" -a -n "$first_install" -a -z "${cygwin}${mac}" ]; then if [ -n "$SERVICEDIR" ]; then if systemctl enable ${PRODUCT}.service; then