More clean up
authorchapel <jacob.chapel@gmail.com>
Wed, 19 Oct 2011 19:02:23 +0000 (12:02 -0700)
committerchapel <jacob.chapel@gmail.com>
Wed, 19 Oct 2011 19:02:23 +0000 (12:02 -0700)
stop
util/start.sh

diff --git a/stop b/stop
index d32a82f8da60cee3a49b9a59f3d980ac44b86a40..59e64920324aef708c3e8ed2355cd5d508838dee 100755 (executable)
--- a/stop
+++ b/stop
@@ -3,8 +3,13 @@
 ps waux | grep node | grep -v grep
 
 echo "stopping ..."
-sudo forever stopall           
+sudo forever stopall
 forever stopall
 
 sleep 3
 ps waux | grep node | grep -v grep
+
+sleep 1
+cp log.txt log-$(date +%s).txt
+cd etherpad-lite/node
+cp log.txt log-$(date +%s).txt
index be447e8116af9e86839a8107b2bf5f6340f6e3ea..c0cf598d0c8ddd311d2c253f553b41876e246599 100755 (executable)
@@ -4,53 +4,14 @@ cd ~
 
 export PATH="/usr/local/bin:$PATH"
 
-
-
-cat > .ssh/id_rsa << FIN
------BEGIN RSA PRIVATE KEY-----
-MIIEoQIBAAKCAQEArjSBiT01b3b3buA5bRS+LLmLz0BfEQd3tHmyjbKhSL3wCQgY
-vJMARZFPnPt4bHzGxmNZAwWQFwUnEDbZir3HtSIXr1zOilBjq6BlTyrP+gPOEhkC
-bBE0hjEmNn4iJjqgzJe+ndmvYAHHrmBtt36coz0E3vksQSy2N+WDteWxHlXJfWuI
-Zcpf10SaAClJoUrV2wj2ApNx2uT8vm65HYedeSRfP7hXYcb0nyhWcn4yKQB45kLA
-DiIAnVpvoAexaNX23EyxirYS1ZHaSfLHbQGnz8PGoJozMGOa7vGSJ5fuw6A5xeSi
-JaEBQV6GlJQpEdnwSkNpU9qeIrm88ufjw5LLJQIBIwKCAQEAqTpR8whCiYmCpjjn
-VAWFiohb7ebCwBXh/8atc7TXMLiCxvHsJOaSjLkLgo3isofXCdzaIDFKJP2w6y33
-5dzt4yhux5v71tG/6I0vNvZjomoYo93H1rGgvN9JsUdUX6aq1WA1g2XATqKk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5t
-5NXgxVNO7IKtoBZeqkbdbUE02XXsO3ybxeQfiNz62wxuveE89g==
------END RSA PRIVATE KEY-----
-FIN
-chmod 700 .ssh/id_rsa
-
 rm -rf fc
-git clone git@github.com:sleeplessinc/fc.git
+git clone git@github.com:finalsclubdev/FinalsClub.git
 cd fc
-git checkout dev
+git checkout master
 git submodule init && git submodule update
 npm install
 cd etherpad-lite
 npm install
-cd ..
-cp settings.json etherpad-lite
-
-cd ../bruml
-npm install socket.io
-## mongorestore -d fc ./dump/fc_dev
 
 
 ## init fcbackup 
@@ -61,8 +22,6 @@ chmod 775 fcbackup_init.sh
 
 
 cd
-ln -sf fc/bruml/log.txt b.log
-ln -sf fc/etherpad-lite/node/log.txt e.log
 
 ./restart.sh