From 482aa8094e99f81177d28c2e8c7aaab360320351 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 12 Mar 2018 14:14:02 +0100 Subject: [PATCH] postinst: remove fixup for ceph jewel update transition In commit 8b89f7533e2df983e0285e2f170971a3637d7349 we needed to change the ceph.service install target to multi-user.target, as ceph.target could hang indefinitely if ceph-common gets upgraded. This change is included in pve-manager 4.4-13 and newer, as users wanting to upgrade to 5.0 must upgrade to latest 4.4 to be able to do so (without headache) this can be removed. Signed-off-by: Thomas Lamprecht --- debian/postinst | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/debian/postinst b/debian/postinst index 0ed217c1..b7a91932 100755 --- a/debian/postinst +++ b/debian/postinst @@ -62,18 +62,6 @@ EOF echo '|/usr/bin/pvemailforward' >>/root/.forward fi - if [ -f /etc/systemd/system/ceph.service ]; then - md5=$(md5sum /etc/systemd/system/ceph.service) - if [[ "$md5" == "21b2e7a7c4ffcf92ad0ec2c905e88e5b /etc/systemd/system/ceph.service" ]]; then - echo "Updating PVE ceph.service to correct install target.." - cp /usr/share/doc/pve-manager/examples/ceph.service /etc/systemd/system/ceph.service - systemctl --system daemon-reload >/dev/null || true - systemctl --system disable ceph.service - systemctl --system enable ceph.service - echo " done" - fi - fi - systemctl --system daemon-reload >/dev/null || true # same as dh_systemd_enable (code copied) -- 2.39.5