mirror of
https://github.com/xcat2/confluent.git
synced 2025-08-28 22:08:26 +00:00
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.
This commit is contained in:
@@ -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'!<networking>!'$ntpcfg'<networking>!' -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 '<!--INSERT' /tmp/profile/modified.xml |sed -e s/.*INSERT:// -e 's/-->//'); do
|
||||
# sed -i 's%<!--INSERT:'${file}'-->'"%$(cat $file|tr -d '\n')"% /tmp/profile/modified.xml
|
||||
#done
|
||||
if grep append /tmp/bootloader.xml > /dev/null; then
|
||||
sed -i 's@</general>@</general>'"$(tr -d '\n' < /tmp/bootloader.xml)"'@' /tmp/profile/modified.xml
|
||||
fi
|
||||
|
Reference in New Issue
Block a user