From 2ec3adcc44ead81fca0372af90bed8a4efafea0c Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Thu, 2 Oct 2014 16:23:26 -0700 Subject: [PATCH] Don't link the init script if SYSTEMD is set. Signed-off-by: Tom Eastep --- Shorewall-lite/install.sh | 2 +- Shorewall/install.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Shorewall-lite/install.sh b/Shorewall-lite/install.sh index 2bee79614..47a567876 100755 --- a/Shorewall-lite/install.sh +++ b/Shorewall-lite/install.sh @@ -499,7 +499,7 @@ chmod 644 ${DESTDIR}${SHAREDIR}/$PRODUCT/version # Remove and create the symbolic link to the init script # -if [ -z "$DESTDIR" ]; then +if [ -z "${DESTDIR}${SYSTEMD}" ]; then rm -f ${SHAREDIR}/$PRODUCT/init ln -s ${INITDIR}/${INITFILE} ${SHAREDIR}/$PRODUCT/init fi diff --git a/Shorewall/install.sh b/Shorewall/install.sh index ac8f28739..714c59b3b 100755 --- a/Shorewall/install.sh +++ b/Shorewall/install.sh @@ -1120,7 +1120,7 @@ chmod 644 ${DESTDIR}${SHAREDIR}/$PRODUCT/version # Remove and create the symbolic link to the init script # -if [ -z "$DESTDIR" ]; then +if [ -z "${DESTDIR}${SYSTEMD}" ]; then rm -f ${SHAREDIR}/$PRODUCT/init ln -s ${INITDIR}/${INITFILE} ${SHAREDIR}/$PRODUCT/init fi