]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
modify sysvinit if condition 410/head
authorAmin Shayan <amin@shayan.net>
Sat, 9 Jul 2016 19:37:34 +0000 (00:07 +0430)
committerGitHub <noreply@github.com>
Sat, 9 Jul 2016 19:37:34 +0000 (00:07 +0430)
If ceph packages aren't installed on the host with systemd preinstalled, script will return sysvinit instead of systemd which is invalid.

ceph_deploy/hosts/centos/__init__.py

index 2b835e303b2769b1468e3a5eefe93f8407ca8a76..61b3b9096accd8bf076d48f3f246f6b43840d418 100644 (file)
@@ -21,7 +21,7 @@ def choose_init(module):
     if module.normalized_release.int_major < 7:
         return 'sysvinit'
 
-    if not module.conn.remote_module.path_exists("/usr/lib/systemd/system/ceph.target"):
+    if not module.conn.remote_module.path_exists("/usr/lib/systemd"):
         return 'sysvinit'
 
     return 'systemd'