From 5edcfb63ad387100eaa9c4ba83e01ca53dfdac15 Mon Sep 17 00:00:00 2001 From: Thais Siqueira Date: Tue, 7 Feb 2017 15:18:56 -0200 Subject: [#918] Adds exit status to post install script Without `exit X` the scritp gets the exit status from last command. So it was getting the exit status from `systemctl -q is-active pixelated-server.service` when pixelated-server wasn't running. with @deniscostadsc --- debian/pixelated-user-agent.postinst | 2 ++ 1 file changed, 2 insertions(+) (limited to 'debian') diff --git a/debian/pixelated-user-agent.postinst b/debian/pixelated-user-agent.postinst index 78779e6a..8c68a5cf 100644 --- a/debian/pixelated-user-agent.postinst +++ b/debian/pixelated-user-agent.postinst @@ -5,3 +5,5 @@ export PATH=/bin:/usr/bin:/sbin:/usr/sbin if [ -d /run/systemd/system ]; then systemctl -q is-active pixelated-server.service && systemctl restart pixelated-server.service fi + +exit 0 -- cgit v1.2.3