summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2011-03-16 13:45:40 +0100
committerChristoph Helma <helma@in-silico.ch>2011-03-16 13:45:40 +0100
commit0d0a5a2d1460a8ca8a7126dd2d47473ddc383a70 (patch)
tree1071ec503bebb801a4680e50da89db91c5f4b101
parent18e67e9205aed39e06f849b8ff7e54591289c59e (diff)
update added
-rwxr-xr-xupdate13
1 files changed, 13 insertions, 0 deletions
diff --git a/update b/update
new file mode 100755
index 0000000..c8f9a21
--- /dev/null
+++ b/update
@@ -0,0 +1,13 @@
+#!/bin/sh
+. /etc/profile
+gem update opentox-ruby
+dir=`pwd`
+cd /var/www/opentox
+for s in *; do
+ cd $s
+ git pull
+ cd -
+done
+kill `cat /opt/nginx/logs/nginx.pid`
+/opt/nginx/sbin/nginx
+cd $dir