debian: postinst: don't start systemd services

Starting services in the postinst script doesn't make much sense since
the package is normally installed in the template. In addition the start
can fail when executed through a trigger.
This commit is contained in:
HW42 2015-02-03 03:34:52 +01:00 committed by Marek Marczykowski-Górecki
parent e8f25bfac8
commit 05da6e6379

View File

@ -179,9 +179,7 @@ enableSystemdUnits() {
#displayFailedStatus is-enabled ${unit} #displayFailedStatus is-enabled ${unit}
} || { } || {
echo "Enabling: ${unit}..." echo "Enabling: ${unit}..."
systemctl enable ${unit} > /dev/null 2>&1 && { systemctl enable ${unit} > /dev/null 2>&1 || {
systemctl start ${unit} > /dev/null 2>&1 || displayFailedStatus start ${unit}
} || {
echo "Could not enable: ${unit}" echo "Could not enable: ${unit}"
displayFailedStatus enable ${unit} displayFailedStatus enable ${unit}
} }