]> git.proxmox.com Git - pve-cluster.git/commit
ensure problematic ha service is stopped during update
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 7 Dec 2017 14:10:02 +0000 (15:10 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 7 Dec 2017 14:26:00 +0000 (15:26 +0100)
commitec826d72c06e6f649b2b19c3341c39abb29b19f9
tree8d2e667d5818924e1e7f0d56a5b47abd19eacb0c
parented93bd68bf96fd1af54ff5ef3fa31b213b402fc0
ensure problematic ha service is stopped during update

Add a postinst file which stops, if running, the ha service before it
configures pve-cluster and starts them again, if enabled.
Do this only if the version installed before the upgrade is <= 2.0-3

dpkg-query has Version and Config-Version

Version is at this time the new unpacked version already, so we need
to check both to catch all cases.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
debian/pve-cluster.postinst [new file with mode: 0644]