6ad8f3
From 99efecaf87dc1fc9517efaff441a6a7ce46444eb Mon Sep 17 00:00:00 2001
6ad8f3
From: Jim Perrin <jperrin@centos.org>
6ad8f3
Date: Wed, 11 Mar 2015 10:37:03 -0500
6ad8f3
Subject: [PATCH] update for new ntp server method
6ad8f3
6ad8f3
---
6ad8f3
 ipaplatform/base/paths.py        | 1 +
6ad8f3
 ipaserver/install/ntpinstance.py | 2 ++
6ad8f3
 2 files changed, 3 insertions(+)
6ad8f3
6ad8f3
diff --git a/ipaplatform/base/paths.py b/ipaplatform/base/paths.py
6ad8f3
index af50262..5090062 100644
6ad8f3
--- a/ipaplatform/base/paths.py
6ad8f3
+++ b/ipaplatform/base/paths.py
6ad8f3
@@ -99,6 +99,7 @@ class BasePathNamespace(object):
6ad8f3
     PKI_TOMCAT_ALIAS_DIR = "/etc/pki/pki-tomcat/alias/"
6ad8f3
     PKI_TOMCAT_PASSWORD_CONF = "/etc/pki/pki-tomcat/password.conf"
6ad8f3
     ETC_REDHAT_RELEASE = "/etc/redhat-release"
6ad8f3
+    ETC_CENTOS_RELEASE = "/etc/centos-release"
6ad8f3
     RESOLV_CONF = "/etc/resolv.conf"
6ad8f3
     SAMBA_KEYTAB = "/etc/samba/samba.keytab"
6ad8f3
     SMB_CONF = "/etc/samba/smb.conf"
6ad8f3
diff --git a/ipaserver/install/ntpinstance.py b/ipaserver/install/ntpinstance.py
6ad8f3
index c653525..4b0578b 100644
6ad8f3
--- a/ipaserver/install/ntpinstance.py
6ad8f3
+++ b/ipaserver/install/ntpinstance.py
6ad8f3
@@ -44,6 +44,8 @@ class NTPInstance(service.Service):
6ad8f3
         os = ""
6ad8f3
         if ipautil.file_exists(paths.ETC_FEDORA_RELEASE):
6ad8f3
             os = "fedora"
6ad8f3
+        elif ipautil.file_exists(paths.ETC_CENTOS_RELEASE):
6ad8f3
+            os = "centos"
6ad8f3
         elif ipautil.file_exists(paths.ETC_REDHAT_RELEASE):
6ad8f3
             os = "rhel"
6ad8f3
 
6ad8f3
-- 
6ad8f3
1.8.3.1
6ad8f3