Skip to content

Instantly share code, notes, and snippets.

@udhos
Last active February 12, 2019 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save udhos/403043827a68e4cb980b425701567f31 to your computer and use it in GitHub Desktop.
Save udhos/403043827a68e4cb980b425701567f31 to your computer and use it in GitHub Desktop.
gowebhello_cloudinit
#!/bin/bash
yum -y update
yum install -y git
cd /tmp
rm -rf update-golang
git clone https://github.com/udhos/update-golang
cd update-golang
./update-golang.sh
cd /tmp
rm -rf gowebhello
git clone https://github.com/udhos/gowebhello
cd gowebhello
/usr/local/go/bin/go install ./gowebhello
echo logging to /tmp/gowebhello.log
nohup $HOME/go/bin/gowebhello >/tmp/gowebhello.log 2>&1 &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment