From 50661b7deee7cdc5365975c51cd6292e8a55106e Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 9 Jul 2020 13:30:13 -0400 Subject: [PATCH] Fix multiple ntp servers in EL8 profile --- confluent_osdeploy/el8/profiles/default/scripts/pre.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_osdeploy/el8/profiles/default/scripts/pre.sh b/confluent_osdeploy/el8/profiles/default/scripts/pre.sh index 624122a8..2abafd23 100644 --- a/confluent_osdeploy/el8/profiles/default/scripts/pre.sh +++ b/confluent_osdeploy/el8/profiles/default/scripts/pre.sh @@ -19,7 +19,7 @@ tz=$(grep ^timezone: /etc/confluent/confluent.deploycfg) tz=${tz#timezone: } ntpsrvs="" if grep ^ntpservers: /etc/confluent/confluent.deploycfg > /dev/null; then - ntpsrvs="--ntpservers="$(sed -n '/^ntpservers:/,/^- /p' /etc/confluent/confluent.deploycfg|sed 1d|sed -e 's/^- //' | paste -d,) + ntpsrvs="--ntpservers="$(sed -n '/^ntpservers:/,/^[^-]/p' /etc/confluent/confluent.deploycfg|sed 1d|sed '$d' | sed -e 's/^- //' | paste -d,) fi echo timezone $ntpsrvs $tz --utc > /tmp/timezone rootpw=$(grep ^rootpassword /etc/confluent/confluent.deploycfg | awk '{print $2}')