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