]> git.proxmox.com Git - pve-manager.git/commit - debian/postinst
postinst: handle masked units
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 13 Mar 2018 11:08:39 +0000 (12:08 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 13 Mar 2018 11:14:22 +0000 (12:14 +0100)
commitaee71a6c14000d71d81051c2f4e21a9a5b8db952
treed7c20dcea5c6cbb9d226fa74bf298e0f25f1d96d
parent7beadbc88650af70007993066f8a8eac09068cb4
postinst: handle masked units

check if a unit is masked before starting/restarting/reloading it,
as else we get pretty ugly error messages during upgrade.

as "deb-systemd-helper --quiet was-enabled" differs from the
"systemctl is-enabled" behaviour, the former returns true for masked
units while the latter does not, we have to manually call systemctl,
circumventing the deb helper.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Acked-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
debian/postinst