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