From d10d15da9b28dedcd03dbb599a3cd004dbb2c8b3 Mon Sep 17 00:00:00 2001
From: Till Brehm <tbrehm@ispconfig.org>
Date: Thu, 13 Mar 2014 11:58:56 -0400
Subject: [PATCH] Fix for last commit.

---
 server/scripts/ispconfig_update.php |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/scripts/ispconfig_update.php b/server/scripts/ispconfig_update.php
index 6843e7b..3512de9 100644
--- a/server/scripts/ispconfig_update.php
+++ b/server/scripts/ispconfig_update.php
@@ -93,14 +93,14 @@
 if($method == 'stable') {
 	$new_version = @file_get_contents('http://www.ispconfig.org/downloads/ispconfig3_version.txt') or die('Unable to retrieve version file.');
 	$new_version = trim($new_version);
-	if($new_version != ISPC_APP_VERSION) {
+	if(version_compare($new_version, ISPC_APP_VERSION, '>')) {
 		passthru('/usr/local/ispconfig/server/scripts/update_from_tgz.sh');
 		exit;
 	} else {
 		echo "There are no updates available for ISPConfig ".ISPC_APP_VERSION."\n";
 	}
 } else {
-	passthru('/usr/local/ispconfig/server/scripts/update_from_svn.sh');
+	passthru('/usr/local/ispconfig/server/scripts/update_from_dev.sh');
 	exit;
 }
 

--
Gitblit v1.9.1