diff --git a/packaging/debian_amd64/DEBIAN/postinst b/packaging/debian_amd64/DEBIAN/postinst index 09cf3657..06e73c55 100755 --- a/packaging/debian_amd64/DEBIAN/postinst +++ b/packaging/debian_amd64/DEBIAN/postinst @@ -25,9 +25,9 @@ case "$1" in enable vault-rest.service if [ ${SYSTEMD_AVAIL} ] ; then - systemctl daemon-reload - systemctl start vault.service - systemctl start vault.path + (systemctl daemon-reload || :) + (systemctl start vault.service || :) + (systemctl start vault.path || :) fi else diff --git a/packaging/debian_amd64/DEBIAN/postrm b/packaging/debian_amd64/DEBIAN/postrm index 022f3b07..91831522 100755 --- a/packaging/debian_amd64/DEBIAN/postrm +++ b/packaging/debian_amd64/DEBIAN/postrm @@ -58,7 +58,7 @@ case "$1" in upgrade|deconfigure) if [ ${SYSTEMD_AVAIL} ] ; then - systemctl stop vault 2> /dev/null || : + (systemctl stop vault 2> /dev/null || :) fi ;; diff --git a/packaging/debian_arm64/DEBIAN/postinst b/packaging/debian_arm64/DEBIAN/postinst index 09cf3657..06e73c55 100755 --- a/packaging/debian_arm64/DEBIAN/postinst +++ b/packaging/debian_arm64/DEBIAN/postinst @@ -25,9 +25,9 @@ case "$1" in enable vault-rest.service if [ ${SYSTEMD_AVAIL} ] ; then - systemctl daemon-reload - systemctl start vault.service - systemctl start vault.path + (systemctl daemon-reload || :) + (systemctl start vault.service || :) + (systemctl start vault.path || :) fi else diff --git a/packaging/debian_arm64/DEBIAN/postrm b/packaging/debian_arm64/DEBIAN/postrm index 022f3b07..91831522 100755 --- a/packaging/debian_arm64/DEBIAN/postrm +++ b/packaging/debian_arm64/DEBIAN/postrm @@ -58,7 +58,7 @@ case "$1" in upgrade|deconfigure) if [ ${SYSTEMD_AVAIL} ] ; then - systemctl stop vault 2> /dev/null || : + (systemctl stop vault 2> /dev/null || :) fi ;; diff --git a/packaging/debian_armhf/DEBIAN/postinst b/packaging/debian_armhf/DEBIAN/postinst index 09cf3657..06e73c55 100755 --- a/packaging/debian_armhf/DEBIAN/postinst +++ b/packaging/debian_armhf/DEBIAN/postinst @@ -25,9 +25,9 @@ case "$1" in enable vault-rest.service if [ ${SYSTEMD_AVAIL} ] ; then - systemctl daemon-reload - systemctl start vault.service - systemctl start vault.path + (systemctl daemon-reload || :) + (systemctl start vault.service || :) + (systemctl start vault.path || :) fi else diff --git a/packaging/debian_armhf/DEBIAN/postrm b/packaging/debian_armhf/DEBIAN/postrm index 022f3b07..91831522 100755 --- a/packaging/debian_armhf/DEBIAN/postrm +++ b/packaging/debian_armhf/DEBIAN/postrm @@ -58,7 +58,7 @@ case "$1" in upgrade|deconfigure) if [ ${SYSTEMD_AVAIL} ] ; then - systemctl stop vault 2> /dev/null || : + (systemctl stop vault 2> /dev/null || :) fi ;;