From dc19c4eb8c75b5ec02d2d5337b7fb63c8b61688e Mon Sep 17 00:00:00 2001
From: Till Brehm <tbrehm@ispconfig.org>
Date: Sun, 16 Feb 2014 06:27:35 -0500
Subject: [PATCH] Fixed: FS#3093 - PHPMyAdmin URL field does not accept uri symbols '?', '&' and '='

---
 server/scripts/update_from_tgz.sh |   21 ++++++++++++++++++---
 1 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/server/scripts/update_from_tgz.sh b/server/scripts/update_from_tgz.sh
index d957979..09dddeb 100644
--- a/server/scripts/update_from_tgz.sh
+++ b/server/scripts/update_from_tgz.sh
@@ -1,7 +1,22 @@
 #!/bin/bash
 
 cd /tmp
+
+if [ -f ISPConfig-3-stable.tar.gz ]
+then
+rm -f ISPConfig-3-stable.tar.gz
+fi
+
 wget http://www.ispconfig.org/downloads/ISPConfig-3-stable.tar.gz
-cd ispconfig3_install/install/
-php -q update.php
-rm -rf /tmp/ispconfig3_install/install
\ No newline at end of file
+if [ -f ISPConfig-3-stable.tar.gz ]
+then
+	tar xvfz ISPConfig-3-stable.tar.gz
+	cd ispconfig3_install/install/
+	php -q update.php
+	rm -rf /tmp/ispconfig3_install/install
+	rm -f ISPConfig-3-stable.tar.gz
+else
+	echo "Unable to download the update."
+fi
+
+exit 0
\ No newline at end of file

--
Gitblit v1.9.1