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