pgreco / rpms / ipa

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