summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2008-03-31 17:34:40 -0400
committerSimo Sorce <ssorce@redhat.com>2008-03-31 17:34:40 -0400
commita81ea4051be80b8a07c90d6705bda546b0282501 (patch)
tree4d2ce9aef19a24c9fa85f7d2823ca022f2268aa7 /contrib
parent28ac93a5356979efeff2e0a09b099ded77cba75e (diff)
downloadfreeipa-a81ea4051be80b8a07c90d6705bda546b0282501.zip
freeipa-a81ea4051be80b8a07c90d6705bda546b0282501.tar.gz
freeipa-a81ea4051be80b8a07c90d6705bda546b0282501.tar.xz
RHEL4 contrib client uninstall
Diffstat (limited to 'contrib')
-rw-r--r--contrib/RHEL4/ipa-client-setup24
1 files changed, 20 insertions, 4 deletions
diff --git a/contrib/RHEL4/ipa-client-setup b/contrib/RHEL4/ipa-client-setup
index 6dadcc5..df4fd0b 100644
--- a/contrib/RHEL4/ipa-client-setup
+++ b/contrib/RHEL4/ipa-client-setup
@@ -165,19 +165,35 @@ keys /etc/ntp/keys
#controlkey 8
"""
+ntp_sysconfig = """# Drop root to id 'ntp:ntp' by default.
+OPTIONS="-x -u ntp:ntp -p /var/run/ntpd.pid"
+
+# Set to 'yes' to sync hw clock after successful ntpdate
+SYNC_HWCLOCK=yes
+
+# Additional options for ntpdate
+NTPDATE_OPTIONS=""
+"""
+
def config_ntp(server_fqdn):
nc = string.replace(ntp_conf, "$SERVER", server_fqdn)
-
- shutil.copy("/etc/ntp.conf", "/etc/ntp.conf.ipabkp")
-
+
+ shutil.copy("/etc/ntp.conf", "/etc/ntp.conf.ipasave")
+
fd = open("/etc/ntp.conf", "w")
fd.write(nc)
fd.close()
+ shutil.copy("/etc/sysconfig/ntpd", "/etc/sysconfig/ntpd.ipasave")
+
+ fd = open("/etc/sysconfig/ntpd", "w")
+ fd.write(ntp_sysconfig)
+ fd.close()
+
# Set the ntpd to start on boot
os.system("/sbin/chkconfig ntpd on")
-
+
# Restart ntpd
os.system("/sbin/service ntpd restart")