Hi, I cannot merge scripts: --snip-- <?xml version=1.0?> <!DOCTYPE profile SYSTEM /usr/share/autoinstall/dtd/profile.dtd> <profile xmlns=http://www.suse.com/1.0/yast2ns xmlns:config=http://www.suse.com/1.0/configns> <classes config:type=list> <class> <class_name>Repositories</class_name> <configuration>apt-suse10.xml</configuration> </class> </classes> <scripts> <init-scripts config:type=list> <script> <source> <![CDATA[#!/bin/sh apt-get install nagios-plugins ]]> </source> </script> </init-scripts> </scripts> </profile> --snap-- --snip-- <?xml version=1.0?> <!DOCTYPE profile SYSTEM /usr/share/autoinstall/dtd/profile.dtd> <profile xmlns=http://www.suse.com/1.0/yast2ns xmlns:config=http://www.suse.com/1.0/configns> <general> <signature-handling> <accept_unsigned_file config:type=boolean>true</accept_unsigned_file> </signature-handling> </general> <add-on> <add_on_products config:type=list> <listentry> <media_url>nfs://10.x.x.x/usr/local/Unattended/vmware/suse/</media_url> <product>VMware-server</product> <product_dir>/</product_dir> </listentry> </add_on_products> </add-on> <software> <packages config:type=list> <package>VMware-server</package> <package>gcc</package> <package>gcc-c++</package> <package>xorg-x11-libs</package> <package>fontconfig</package> <package>freetype2</package> <package>compat</package> <package>kernel-source</package> <package>xinetd</package> <package>wget</package> <package>patch</package> </packages> </software> <scripts> <init-scripts config:type=list> <script> <network_needed config:type=boolean>true</network_needed> <source> <![CDATA[#!/bin/sh echo -n Switching multicast dns off if [ ! $(grep mdns /etc/host.conf) ]; then echo mdns off >> /etc/host.conf; fi echo done echo -n Changing service number 902 to 904 cp /etc/services /etc/services.backup awk '{res=gsub(^902/, \t904/, $2); print $0 }' /etc/services.backup > /etc/services echo done echo -n Configure vmware server ... /usr/bin/vmware-config.pl default EULA_AGREED=yes rm -f /etc/vmware/not_configured echo done echo Installing the vmware web interface cd /tmp/ wget http://10.x.x.x/vmware/VMware-mui-current.tar.gz tar zxvf VMware-mui-current.tar.gz cd vmware-mui-distrib echo -n Applying patches wget http://10.x.x.x/vmware/vmware-install.pl.p0 patch -p0 < vmware-install.pl.p0 echo done echo -n Installing and configuring vmware server web interface ... perl vmware-install.pl --default EULA_AGREED=yes echo done echo -n Preparing xinetd insserv xinetd echo done]]> </source> </script> </init-scripts> </scripts> </profile> --snap-- Both xmls are beeing merged using the nagios part only. How can i use more than one script.
On Wednesday 27 September 2006 08:49, Arvid Walter wrote:
I cannot merge scripts: ... Both xmls are beeing merged using the nagios part only. How can i use more than one script.
read this: http://www.suse.de/~ug/autoyast_doc/merging.html if you have the same section in two XML files, one will overwrite the other. There are workarounds documented at the link above. -- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, Maxfeldstrasse 5, D-90409 Nuernberg, Germany Business: http://www.suse.de/~ug now playing Covenant - The Men
participants (2)
-
Arvid Walter
-
Uwe Gansert