debian: postinst: enable haveged only if installed

This commit is contained in:
HW42 2015-02-03 03:40:21 +01:00 committed by Marek Marczykowski-Górecki
parent 05da6e6379
commit 60a181b3f4

View File

@ -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