From b367d8ea50b338ac63411dc2ae8902b7deb1cf0a Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 20 Aug 2021 11:12:22 -0400 Subject: [PATCH] Fix ntpcfg handling in autoyast --- confluent_osdeploy/suse15/profiles/hpc/scripts/pre.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_osdeploy/suse15/profiles/hpc/scripts/pre.sh b/confluent_osdeploy/suse15/profiles/hpc/scripts/pre.sh index 72592f7c..9762ef82 100644 --- a/confluent_osdeploy/suse15/profiles/hpc/scripts/pre.sh +++ b/confluent_osdeploy/suse15/profiles/hpc/scripts/pre.sh @@ -38,7 +38,7 @@ if grep ^ntpservers: /etc/confluent/confluent.deploycfg > /dev/null; then ntpcfg=$(paste -sd '' /tmp/ntp.cfg) fi run_remote_python getinstalldisk -sed -e s'!'%%INSTDISK%%'!'/dev/$(cat /tmp/installdisk)'!' -e s'!'%%NODENAME%%'!'$nodename'!' -e s'!!'$ntpcfg'!' -e "s?%%ROOTPASSWORD%%?${rootpw}?" /tmp/profile/autoinst.xml > /tmp/profile/modified.xml +sed -e s'!'%%INSTDISK%%'!'/dev/$(cat /tmp/installdisk)'!' -e s'!'%%NODENAME%%'!'$nodename'!' -e 's!!'"$ntpcfg"'!' -e "s?%%ROOTPASSWORD%%?${rootpw}?" /tmp/profile/autoinst.xml > /tmp/profile/modified.xml if grep append /tmp/bootloader.xml > /dev/null; then sed -i 's@@'"$(tr -d '\n' < /tmp/bootloader.xml)"'@' /tmp/profile/modified.xml fi