summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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