start gitweb and tunnels only without args
[bak-git.git] / klin.sh
diff --git a/klin.sh b/klin.sh
index 7ee7fd0..b4c1f9d 100755 (executable)
--- a/klin.sh
+++ b/klin.sh
@@ -1,4 +1,13 @@
-#!/bin/sh -x
+ #!/bin/sh -x
+
+if [ -z "$1" ] ; then
 
 /usr/sbin/lighttpd -f gitweb/httpd.conf
+
+autossh -N -R 9001:10.60.0.92:9001 root@webgui &
+autossh -N -R 9001:10.60.0.92:9001 root@saturn.ffzg.hr &
+autossh -N asa-klin &
+
+fi
+
 ./bak-git-server.pl /home/dpavlin/klin/backup/ 10.60.0.92 $*