[pve-devel] [PATCH manager 11/15] postinst: remove fixup for ceph jewel update transition

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Jan 24 14:12:36 CET 2018


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 at proxmox.com>
---
 debian/postinst | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/debian/postinst b/debian/postinst
index 5e3dd689..8c5b2ca0 100755
--- a/debian/postinst
+++ b/debian/postinst
@@ -60,18 +60,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.14.2





More information about the pve-devel mailing list