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