Skip to content

Instantly share code, notes, and snippets.

@hameedullah
Forked from ghaering/dbg-cloud-init
Created February 25, 2018 11:17
Show Gist options
  • Save hameedullah/f074073d1da3bda523935b3da19e62b9 to your computer and use it in GitHub Desktop.
Save hameedullah/f074073d1da3bda523935b3da19e62b9 to your computer and use it in GitHub Desktop.
Re-run cloud init scripts on Ubuntu 12.04 (AWS)
#!/bin/sh
rm -rf /var/lib/cloud/sem/* /var/lib/cloud/instance /var/lib/cloud/instances/*
cloud-init start 2>&1 > /dev/null
cloud-init-cfg all final
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment