Assuming the script runs on startup, the fault should be here:
https://github.com/andsens/build-debian-cloud/blob/master/init.d/ec2-run-user-data#L36
Is `head -1` correct usage, shouldn't it be `head -n 1`?


Anders


On 14 September 2013 12:38, Matthieu Boret <[email protected]> wrote:

> Hi,
>
> I'm on AWS and I use the latest version of the Debian AMI(7.1 from the
> marketplace). She's works well but I've just one issue with the execution
> of my user-data.
>
> He's not executed during the boot.
>
> However he begins with #!/bin/bash
>
> I've try with this simple script:
>
> #!/bin/bash
> echo "toto" > /tmp/test.log
>
> But nothing is happening.
>
> If I do a curl to retry my user-data, I can see my script:
>
> curl http://169.254.169.254/latest/user-data
>
> Someone has an idea?
>
> Thanks
>
> Matthieu
>

Reply via email to