From 60a181b3f45307aa3c4b7fae988cd14b17aa71d6 Mon Sep 17 00:00:00 2001 From: HW42 Date: Tue, 3 Feb 2015 03:40:21 +0100 Subject: [PATCH] debian: postinst: enable haveged only if installed --- debian/qubes-core-agent.postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/qubes-core-agent.postinst b/debian/qubes-core-agent.postinst index 2852f29..7f00acc 100755 --- a/debian/qubes-core-agent.postinst +++ b/debian/qubes-core-agent.postinst @@ -338,7 +338,7 @@ case "${1}" in # "Enable haveged service" /lib/systemd/system/haveged.service) echo "Enabling haveged service" - enableSystemdUnits haveged.service + [ -e /lib/systemd/system/haveged.service ] && enableSystemdUnits haveged.service ;; # Install overridden serial.conf init script