Hirayama, Pat wrote:
Thanks. I could do that, but, say, I have the same configuration file setup for 10 different XML files. And I want to make a change. I have to remember to duplicate that change in each of the XML files. It'd be much easier if I make the change to one file, and let the script copy it for me.
That's why I'm trying to get this to work -- I had it working perfectly using <files> before....
Just ran a simple test and it works fine for me: % cat /var/adm/autoinstall/logs/post.sh.log + echo 'Running Post-install script' Running Post-install script + id uid=0(root) gid=0(root) + whoami root + mount -a 192.168.1.1:/work/CDs/ /mnt + cp /mnt/mksles8.sh /tmp + umount /mnt % l /tmp/mksles8.sh -rwxr-xr-x 1 root root 2132 Jun 18 12:11 /tmp/mksles8.sh* Can you send me the control file you are using? Just remove the sensitive stuff :) Anas
-p
-----Original Message----- From: Volkmar Glauche [mailto:glauche@uke.uni-hamburg.de] Sent: Tuesday, June 17, 2003 11:43 PM To: Hirayama, Pat Cc: suse-autoinstall@suse.com Subject: Re: [suse-autoinstall] post-install script question
On Tue, 17 Jun 2003, Hirayama, Pat wrote:
Greetings,
So, I've been trying to have autoyast use a post install shell script to mount an NFS share and copy various configuration files onto the newly
setup
server. (SuSE Linux Professional 8.2)
Thanks to Anas' help, I've gotten to the point that the script is copied over and is executed ... but it doesn't work.
The script looks something like this:
#! /bin/sh mount -a cp /mnt/suse/autoyast/files/common/syslog.conf /etc/syslog.conf cp /mnt/suse/autoyast/files/common/motd /etc/motd ...
I don't know why your script may fail. But if you just want to get your own configuration files in place there is (at least with 8.1) the <files> section where you can place file contents as CDATA in you autoyast config file like this ... <configure> <files config:type="list"> <file> <file_contents> <![CDATA[ #here goes your file contents ]]> </file_contents> <file_path>/my_path/my_name</file_path> </file> ... </files> ...
Volkmar