Skip to content

Instantly share code, notes, and snippets.

@samof76
Last active March 27, 2018 09:56
Show Gist options
  • Save samof76/1521db1deeba063b9a3f4c1d4bbc9420 to your computer and use it in GitHub Desktop.
Save samof76/1521db1deeba063b9a3f4c1d4bbc9420 to your computer and use it in GitHub Desktop.
prepare gold instances
#!/bin/bash
/etc/init.d/monit stop
/etc/init.d/opsworks-agent stop
rm -rf /etc/aws/opsworks/ /opt/aws/opsworks/ /var/log/aws/opsworks/ /var/lib/aws/opsworks/ /etc/monit.d/opsworks-agent.monitrc /etc/monit/conf.d/opsworks-agent.monitrc /var/lib/cloud/ /etc/chef
rpm -e opsworks-agent-ruby
# rpm -e chef
# /etc/init.d/nginx stop
# mv /data /data_copy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment