[opensuse-autoinstall] Running several post-install scripts
Hi, I'm trying to run two post-install scripts from file, however it seems, autoyast can't do this. If I include one script in <script> <source>...</source> </script> and one in <script> <location>ftp://.....</location> </script> both scripts run. However, when I try to use two scripts with <location>,,,,</location> only the first one gets done, regardless of an additional script with <source>,,,</source> or not. Is it simply not possible to do so? I tried openSuSE 11.2 and SLES11 SP1 I used the following in the autoyast.xml file: a) <script> <location>ftp://xyzzy/autoyast/mail-settings-112.sh</location> </script> <script> <location>ftp://xyzzy/autoyast/backup-deployment.sh</location> </script> and b) <script> <location>ftp://xyzzy/autoyast/mail-settings-112.sh</location> <filename>mail-settings-112.sh</filename> </script> <script> <location>ftp://xyzzy/autoyast/backup-deployment.sh</location> <filename>backup-deployment.sh</filename> </script> at b) I get log files for both, not only one postinstall-scripts.log, with the second lob, "mail-settings-112.sh.log" being empty. Any help is appreciated. Thank you very much Robert Klein -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
on Wednesday 31 August 2011 Robert Klein wrote:
However, when I try to use two scripts with <location>,,,,</location> only the first one gets done, regardless of an additional script with <source>,,,</source> or not.
Is it simply not possible to do so?
you can have as many post-scripts as you want with a <location>.
<script> <location>ftp://xyzzy/autoyast/mail-settings-112.sh</location> <filename>mail-settings-112.sh</filename> </script> <script> <location>ftp://xyzzy/autoyast/backup-deployment.sh</location> <filename>backup-deployment.sh</filename> </script>
at b) I get log files for both, not only one postinstall-scripts.log, with the second lob, "mail-settings-112.sh.log" being empty.
what about /var/adm/autoinstall/scripts/mail-settings-112.sh ? Is the script there? If it's empty too, the download went wrong. Check /var/log/YaST2/y2log then. -- ciao, Uwe Gansert Uwe Gansert SUSE LINUX Products GmbH, HRB 16746 (AG Nürnberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer Home: http://www.suse.de/~ug - Blog: http://suse.gansert.net listening to: "Ebenholz, Schnee & Blut" by Stillste Stund -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
On 01.09.2011 12:18, Uwe Gansert wrote:
on Wednesday 31 August 2011 Robert Klein wrote:
However, when I try to use two scripts with<location>,,,,</location> only the first one gets done, regardless of an additional script with <source>,,,</source> or not.
Is it simply not possible to do so? you can have as many post-scripts as you want with a<location>.
<script> <location>ftp://xyzzy/autoyast/mail-settings-112.sh</location> <filename>mail-settings-112.sh</filename> </script> <script> <location>ftp://xyzzy/autoyast/backup-deployment.sh</location> <filename>backup-deployment.sh</filename> </script>
at b) I get log files for both, not only one postinstall-scripts.log, with the second lob, "mail-settings-112.sh.log" being empty. what about /var/adm/autoinstall/scripts/mail-settings-112.sh ? Is the script there? If it's empty too, the download went wrong. Check /var/log/YaST2/y2log then
Thank you very much for your help. Unfortunately I didn't keep the log files from those installation attempts. When I tried now with different files it worked. I checked everything when it didn't work, but I think it must've been a typo or something else I did wrong. Thanks a lot for your explanation. Best regards Robert -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
participants (2)
-
Robert Klein
-
Uwe Gansert