Running a script after unattended installation

Chris MacDonald chris at fourthandvine.com
Wed Nov 10 18:31:19 UTC 2010


On Wed, Nov 10, 2010 at 10:08 AM, Mark <mhullrich at gmail.com> wrote:
> On Wed, Nov 10, 2010 at 6:44 AM, Kai Renz <writemecas at googlemail.com> wrote:
>>>
>>>  #!/bin/bash
>>>
>>> echo "test" >> /test.txt
>>
> This will fail unless you have write privilege on / - try using /tmp.
>
> Mark
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>

Which part is failing? When you reboot I take it the script doesn't
run, but does it make the modification to your rc.local? Is the script
you downloaded present in the root of the filesystem?

Also, I've only ever used wget's -O option to specify the output file
and location... you can try that if the problem is that your file
isn't being downloaded to the appropriate location.

Chris




More information about the ubuntu-users mailing list