Recognition

No awards yet.

Posts

1 Posts
  • Published Question

    cURL in user_data

    Hello guys, I'm currently trying to use this value for user_data: ``` cloud-config runcmd: - curl https://mysupercooldomain.tld/do.sh | sh ``` The content of do.sh is: ``` !/bin/bash echo "doing" > status dpkg --add...
    Accepted Answer: Hi @NicolaDL Try encapsulating it in single quotes ', since it will then write the string to a temporary file and execute that file with sh. And since it's a bash script, you can parse it directly to bash instead of ...
    1 By NicolaDL Getting Started DigitalOcean Ubuntu 16.04