Quantcast
Viewing all articles
Browse latest Browse all 127

cloud-init runcmd (using MAAS)

I'm unable to run bash scripts in "runcmd:" that aren't inline.

runcmd:    - [ bash, -c, echo "=========hello world=========" >>foo1.bar ]    - [ bash, -c, echo "=========hello world=========" >>foo2.bar ]    - [ bash, -c, /usr/local/bin/foo.sh ]

The first two lines are successfully run on the deployed Ubuntu instance. However, the foo.sh doesn't seem to run.

Here is /usr/local/bin/foo.sh:

#!/bin/bashecho "=========hello world=========" >>foosh.bar

foo.sh has executable permissions for root and resides on the MAAS server.

I've looked at the following but they don't seem to sort out my issue:

Any help or tips would be greatly appreciated.


Viewing all articles
Browse latest Browse all 127

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>