Index: bash/release.sh |
diff --git a/bash/release.sh b/bash/release.sh |
index 65101906eedb529a5c1472d228996c047b63f01f..4da80e803601ef625db95bd6824f60403465014d 100644 |
--- a/bash/release.sh |
+++ b/bash/release.sh |
@@ -76,7 +76,7 @@ cat <<-EOF > ${ROOT}/DEBIAN/control |
EOF |
cat <<-EOF > ${ROOT}/DEBIAN/postinst |
-#!/bin/sh |
+#!/bin/bash |
INIT_SCRIPT="${INIT_SCRIPT}" |
set -e |
if [ -e /bin/systemctl ] |
@@ -84,7 +84,7 @@ then |
/bin/systemctl daemon-reload |
/bin/systemctl enable ${SYSTEMD} |
/bin/systemctl restart ${SYSTEMD} |
-elif [ -z \$INIT_SCRIPT ] |
+elif [ ! -z "\$INIT_SCRIPT" ] |
then |
update-rc.d \$INIT_SCRIPT enable |
service $INIT_SCRIPT start |