From c719dc0b1dd696e0cd6b51f09ee13c8263375f7c Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Wed, 07 Sep 2011 05:57:38 -0400
Subject: [PATCH] Fixed a warning in maildrop plugin.

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

diff --git a/server/server.sh b/server/server.sh
old mode 100644
new mode 100755
index df844bc..7302ca4
--- a/server/server.sh
+++ b/server/server.sh
@@ -4,4 +4,22 @@
 
 . /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
+	#
+	/usr/bin/php -q /usr/local/ispconfig/server/server.php
+fi
\ No newline at end of file

--
Gitblit v1.9.1