pgreco / rpms / ipa

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