pgreco / rpms / ipa

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