diff --git a/Shorewall-lite/install.sh b/Shorewall-lite/install.sh index b3d82e830..1e81d8175 100755 --- a/Shorewall-lite/install.sh +++ b/Shorewall-lite/install.sh @@ -497,7 +497,10 @@ delete_file ${DESTDIR}${SHAREDIR}/$PRODUCT/lib.common delete_file ${DESTDIR}${SHAREDIR}/$PRODUCT/lib.cli delete_file ${DESTDIR}${SHAREDIR}/$PRODUCT/wait4ifup -if [ -n "$SYSCONFFILE" -a ! -f ${DESTDIR}${SYSCONFDIR}/${PRODUCT} ]; then +# +# Note -- not all packages will have the SYSCONFFILE so we need to check for its existance here +# +if [ -n "$SYSCONFFILE" -a -f "$SYSCONFFILE" -a ! -f ${DESTDIR}${SYSCONFDIR}/${PRODUCT} ]; then if [ ${DESTDIR} ]; then mkdir -p ${DESTDIR}${SYSCONFDIR} chmod 755 ${DESTDIR}${SYSCONFDIR} diff --git a/Shorewall/install.sh b/Shorewall/install.sh index 79c998818..cd5347aff 100755 --- a/Shorewall/install.sh +++ b/Shorewall/install.sh @@ -1143,7 +1143,10 @@ if [ -d ${DESTDIR}${CONFDIR}/logrotate.d ]; then echo "Logrotate file installed as ${DESTDIR}${CONFDIR}/logrotate.d/$PRODUCT" fi -if [ -n "$SYSCONFFILE" -a ! -f ${DESTDIR}${SYSCONFDIR}/${PRODUCT} ]; then +# +# Note -- not all packages will have the SYSCONFFILE so we need to check for its existance here +# +if [ -n "$SYSCONFFILE" -a -f "$SYSCONFFILE" -a ! -f ${DESTDIR}${SYSCONFDIR}/${PRODUCT} ]; then if [ ${DESTDIR} ]; then mkdir -p ${DESTDIR}${SYSCONFDIR} chmod 755 ${DESTDIR}${SYSCONFDIR}