From 5cdfef85b95c589df4b80cb124b2793f53414616 Mon Sep 17 00:00:00 2001 From: Jan Cajthaml Date: Mon, 4 Feb 2019 09:56:29 +0100 Subject: [PATCH] do not exit 1 if unable to start after installation (#79) --- packaging/debian_amd64/DEBIAN/postinst | 2 +- packaging/debian_armhf/DEBIAN/postinst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/debian_amd64/DEBIAN/postinst b/packaging/debian_amd64/DEBIAN/postinst index 97919167..bc25481c 100755 --- a/packaging/debian_amd64/DEBIAN/postinst +++ b/packaging/debian_amd64/DEBIAN/postinst @@ -8,7 +8,7 @@ case "$1" in if [ -f "/etc/init/vault.conf" ] ; then systemctl unmask vault.service >/dev/null systemctl enable vault.service >/dev/null - systemctl start vault.service >/dev/null + (systemctl start vault.service >/dev/null || :) else (>&2 echo "/etc/init/vault.conf file not found") exit 1 diff --git a/packaging/debian_armhf/DEBIAN/postinst b/packaging/debian_armhf/DEBIAN/postinst index 97919167..bc25481c 100755 --- a/packaging/debian_armhf/DEBIAN/postinst +++ b/packaging/debian_armhf/DEBIAN/postinst @@ -8,7 +8,7 @@ case "$1" in if [ -f "/etc/init/vault.conf" ] ; then systemctl unmask vault.service >/dev/null systemctl enable vault.service >/dev/null - systemctl start vault.service >/dev/null + (systemctl start vault.service >/dev/null || :) else (>&2 echo "/etc/init/vault.conf file not found") exit 1