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