From 59e6dc80b31cc958e9c1f051c7ce1a82e142a154 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 22 Jun 2021 12:21:18 -0400 Subject: [PATCH] Remove commented, non-working concept code The code was going to replace XInclude with something more manual from sed and xml comments, but yast strips the comments. So we instead manually make hooks for the replacement items. --- confluent_osdeploy/suse15/profiles/hpc/scripts/pre.sh | 4 ---- 1 file changed, 4 deletions(-) diff --git a/confluent_osdeploy/suse15/profiles/hpc/scripts/pre.sh b/confluent_osdeploy/suse15/profiles/hpc/scripts/pre.sh index a7f3ce02..25e4fda0 100644 --- a/confluent_osdeploy/suse15/profiles/hpc/scripts/pre.sh +++ b/confluent_osdeploy/suse15/profiles/hpc/scripts/pre.sh @@ -39,10 +39,6 @@ if grep ^ntpservers: /etc/confluent/confluent.deploycfg > /dev/null; then 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 -#This would be nice, but suse discards comments before it makes it to /tmp/profile -#for file in $(grep '//'); do -# sed -i 's%'"%$(cat $file|tr -d '\n')"% /tmp/profile/modified.xml -#done if grep append /tmp/bootloader.xml > /dev/null; then sed -i 's@@'"$(tr -d '\n' < /tmp/bootloader.xml)"'@' /tmp/profile/modified.xml fi