Skip to content

Instantly share code, notes, and snippets.

@itayw
Created July 27, 2014 09:55
Show Gist options
  • Save itayw/693e7b9a921066c8404d to your computer and use it in GitHub Desktop.
Save itayw/693e7b9a921066c8404d to your computer and use it in GitHub Desktop.
sysprep.sh
cd /opt/joola/node_modules/joola
pm2 startup ubuntu
pm2 stop 0
mongo cache --eval "db.dropDatabase()"
redis-cli flushall
service mongod stop
rm -rf /var/lib/mongodb/journal/*
service mongod start
service mongod stop
rm -f /var/lib/mongodb/mongod.lock
rm -rf /etc/chef
chown -R itay /home/joola/.npm
rm -rf /home/joola/.npm/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment