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