]> git.proxmox.com Git - pve-manager-legacy.git/commitdiff
postinst: remove fixup for ceph jewel update transition
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 12 Mar 2018 13:14:02 +0000 (14:14 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 12 Mar 2018 14:13:48 +0000 (15:13 +0100)
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 <t.lamprecht@proxmox.com>
debian/postinst

index 0ed217c1a0a955da8aeea4d0e2554cc65f68f446..b7a91932955c50b5ca22c33b32a8bc9a36f01757 100755 (executable)
@@ -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)