From f5414d0fd1fdb9b374df46a7e037ba2653b4b1ad Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Fri, 30 Mar 2012 13:56:59 -0700 Subject: [PATCH] Create ${SYSTEMD} if needed. Signed-off-by: Tom Eastep --- Shorewall-init/install.sh | 1 + Shorewall/install.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/Shorewall-init/install.sh b/Shorewall-init/install.sh index 3e14a0b01..d63ffb5ad 100755 --- a/Shorewall-init/install.sh +++ b/Shorewall-init/install.sh @@ -274,6 +274,7 @@ fi # Install the .service file # if [ -n "$SYSTEMD" ]; then + mkdir -p ${DESTDIR}${SYSTEMD} run_install $OWNERSHIP -m 600 shorewall-init.service ${DESTDIR}${SYSTEMD}/shorewall-init.service echo "Service file installed as ${DESTDIR}${SYSTEMD}/shorewall-init.service" if [ -n "$DESTDIR" ]; then diff --git a/Shorewall/install.sh b/Shorewall/install.sh index 7dc111d77..10cdb0ad7 100755 --- a/Shorewall/install.sh +++ b/Shorewall/install.sh @@ -355,6 +355,7 @@ fi # Install the .service file # if [ -n "$SYSTEMD" ]; then + mkdir -p ${DESTDIR}${SYSTEMD} run_install $OWNERSHIP -m 600 $PRODUCT.service ${DESTDIR}${SYSTEMD}/$PRODUCT.service echo "Service file installed as ${DESTDIR}${SYSTEMD}/$PRODUCT.service" fi