pgreco / rpms / ipa

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