From 81d79a79e4b29e9314b64b2e4c49b48ae8319767 Mon Sep 17 00:00:00 2001
From: ftimme <ft@falkotimme.com>
Date: Tue, 11 Oct 2011 08:50:45 -0400
Subject: [PATCH] - WebDAV Users: show only domains that run on Apache (because nginx does not have full WebDAV support).

---
 server/server.sh |   25 +++++++++++++++++++++++--
 1 files changed, 23 insertions(+), 2 deletions(-)

diff --git a/server/server.sh b/server/server.sh
old mode 100644
new mode 100755
index ddd0b38..2a6b2c4
--- a/server/server.sh
+++ b/server/server.sh
@@ -1,5 +1,26 @@
-#!/bin/bash
+#!/bin/sh
 
 PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin
 
-/usr/bin/php -q /usr/local/ispconfig/server/server.php
\ No newline at end of file
+. /etc/profile
+
+if [ -f /tmp/ispconfig3_install/install/autoupdate ]; then
+	#
+	# there is a auto-update waiting for update, so let's do it
+	#
+	cd /tmp/ispconfig3_install/install
+	/usr/bin/php -q autoupdate.php	
+	cd /
+
+	#
+	# do some clean-up
+	#
+	rm /tmp/ispconfig3_install -R
+
+else
+	# 
+	# there is no update waiting, so lets start the ISPConfig-System
+	#
+	cd /usr/local/ispconfig/server
+	/usr/bin/php -q /usr/local/ispconfig/server/server.php
+fi
\ No newline at end of file

--
Gitblit v1.9.1