From cc3fb3d95d21724942a4fcc6f54d9a157940d119 Mon Sep 17 00:00:00 2001 From: oliver <oliver@ispconfig3> Date: Mon, 27 Aug 2007 10:58:30 -0400 Subject: [PATCH] fixed some bugs in the installer --- install/lib/install.lib.php | 17 +++++++++++++++-- 1 files changed, 15 insertions(+), 2 deletions(-) diff --git a/install/lib/install.lib.php b/install/lib/install.lib.php index f705d2b..503b074 100644 --- a/install/lib/install.lib.php +++ b/install/lib/install.lib.php @@ -56,9 +56,22 @@ $FILE = realpath('../install.php'); +//** Get distribution identifier function get_distname() { - global $conf; // TODO wtf ? - $distname = $conf['distname']; + + //** Debian + if(file_exists('/etc/debian_version')) { + + if(trim(file_get_contents('/etc/debian_version')) == '4.0') { + $distname = 'debian40'; + } + } + + //** Redhat + elseif(file_exists("/etc/redhat_release")) { + + } + return $distname; } -- Gitblit v1.9.1