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