Skip to content

Instantly share code, notes, and snippets.

@samof76
Last active March 29, 2018 13:25
Show Gist options
  • Save samof76/1fde11c12ee028ab44c292b297e238be to your computer and use it in GitHub Desktop.
Save samof76/1fde11c12ee028ab44c292b297e238be to your computer and use it in GitHub Desktop.
#!/bin/bash
set -x
pushd /tmp
wget https://github.com/sribalakumar/bootchart/archive/master.zip
unzip master.zip
pushd bootchart-master
sh install.sh
sed -i 's/default=1/default=0/g' /boot/grub/menu.lst
popd
popd
/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