2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-04-30 20:37:47 +00:00

Fix diskless profiles for chrony.conf modification

This commit is contained in:
Jarrod Johnson
2026-04-30 10:44:28 -04:00
parent d03e689660
commit 98cbd7581a

View File

@@ -26,17 +26,10 @@ if grep ^ntpservers: /etc/confluent/confluent.deploycfg > /dev/null; then
fi
if [ -f /tmp/timeservers ]; then
ntpsrvs=$(cat /tmp/timeservers)
sed -i "1,/^pool * /c\\
${ntpsrvs//$'\n'/\\$'\n'}" /etc/chrony.conf
systemctl restart chronyd
rm -f /tmp/timeservers
sed -i '/^[[:space:]]*\(pool\|server\)[[:space:]]/d' /etc/chrony.conf
cat /tmp/timeservers >> /etc/chrony.conf
systemctl restart chronyd
rm -f /tmp/timeservers
fi
export nodename confluent_mgr confluent_profile