Hello guys,<br><br>i'm currently installing ubuntu using a PXE Server and a preseed file. <br><br>The unattended installation itself works fine, but now i need to run a script after the installation to configure some services.<br>
<br>To do this i use "preseed/late_command" in my preseed file:<br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote"><i>d-i preseed/late_command string wget <a href="http://MY_IP/finisher.sh">http://MY_IP/finisher.sh</a> /target/root; sed -i 's_exit 0_sh /root/finisher.sh_' /target/etc/rc.local;</i><br>
</blockquote><br><br><br>This is the content of finisher.sh, i did this to test if the script is really called:<br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">
<div> #!/bin/bash</div></blockquote><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">echo "test" >> /test.txt<br></blockquote>
<div><br> On my pxe server i have a directory with the content of the installation cd, my preseed.cfg and the finisher.sh file.<br><br>What is wrong with my configuration?! I need some way to run a script after the installation.<br>
<br><br>greetings<br></div>