pgreco / rpms / ipa

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