From 9c9382e6949e1366c6adb502b7aacae2c11023f7 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Thu, 08 Sep 2011 09:42:04 -0400
Subject: [PATCH] Fixed: FS#1709 - Wrong message "Your hard-disk space is going full" in the "Monitor -> Show Disk Usage"

---
 server/server.sh |   21 ++++++++++++++++++++-
 1 files changed, 20 insertions(+), 1 deletions(-)

diff --git a/server/server.sh b/server/server.sh
old mode 100644
new mode 100755
index df844bc..2a6b2c4
--- a/server/server.sh
+++ b/server/server.sh
@@ -4,4 +4,23 @@
 
 . /etc/profile
 
-/usr/bin/php -q /usr/local/ispconfig/server/server.php
+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