From 19482ac197c0214dac5435f15c062f76900be32d Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Thu, 9 Oct 2014 10:14:23 -0700 Subject: [PATCH] Allow Shorewall-init installer to create SBINDIR if configure == 0 Signed-off-by: Tom Eastep --- Shorewall-init/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall-init/install.sh b/Shorewall-init/install.sh index 0f37b5707..6a292a301 100755 --- a/Shorewall-init/install.sh +++ b/Shorewall-init/install.sh @@ -340,7 +340,7 @@ if [ -n "$SYSTEMDDIR" ]; then run_install $OWNERSHIP -m 644 $SERVICEFILE ${DESTDIR}${SYSTEMDDIR}/$PRODUCT.service [ ${SBINDIR} != /sbin ] && eval sed -i \'s\|/sbin/\|${SBINDIR}/\|\' ${DESTDIR}${SYSTEMDDIR}/$PRODUCT.service echo "Service file $SERVICEFILE installed as ${DESTDIR}${SYSTEMDDIR}/$PRODUCT.service" - if [ -n "$DESTDIR" ]; then + if [ -n "$DESTDIR" -o $configure -eq 0 ]; then mkdir -p ${DESTDIR}${SBINDIR} chmod 755 ${DESTDIR}${SBINDIR} fi