Skip to content

Instantly share code, notes, and snippets.

@boris
Created July 31, 2012 13:50
Show Gist options
  • Save boris/3217189 to your computer and use it in GitHub Desktop.
Save boris/3217189 to your computer and use it in GitHub Desktop.
verification for rightscale scripts
#!/bin/bash
if test "$RS_REBOOT" = "true" ; then
echo "Skip Example script on reboot."
logger -t BaseServerConfigScript "Skipping on reboot."
exit 0
fi
rm -rf /some/path
s3cmd get s3://path/to/your/data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment