Purge chrony package in NTP element
If NTP is installed and used, make sure Chrony is not installed because they would conflict each others. We have seen some cases where NTP was started after Chrony but failed because of port conflict. Since Chrony is installed by default in EL7 images, we want to avoid this conflict. Change-Id: I186152786a27ca5bee1b288a76c2e340971596a4
This commit is contained in:
parent
22b3d0967e
commit
f6f9321a68
|
@ -1,5 +1,10 @@
|
|||
#!/bin/bash
|
||||
set -ue
|
||||
|
||||
# we don't want chrony and ntp conflict each others.
|
||||
if rpm -q chrony; then
|
||||
yum remove -y chrony
|
||||
fi
|
||||
|
||||
# ntpdate is used when the network is brought up to correct any large time skew
|
||||
install-packages ntp ntpdate
|
||||
|
|
Loading…
Reference in New Issue