Created
July 27, 2014 09:55
-
-
Save itayw/693e7b9a921066c8404d to your computer and use it in GitHub Desktop.
sysprep.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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