From feec447f6f1bec7e56a53328d468695b8f6e7462 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Wed, 10 Feb 2010 09:05:33 -0500
Subject: [PATCH] Added detection of existing installs in install.php

---
 install/install.php |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/install/install.php b/install/install.php
index 80fe681..5d0d444 100644
--- a/install/install.php
+++ b/install/install.php
@@ -95,6 +95,10 @@
 	die('This software can not be installed on a server wich runs ISPConfig 2.x.');
 }
 
+if(is_dir('/usr/local/ispconfig')) {
+	die('ISPConfig 3 installation found. Please use update.php instead if install.php to update the installation.');
+}
+
 //** Detect the installed applications
 $inst->find_installed_apps();
 

--
Gitblit v1.9.1