wyrie
2009-12-07 2ee270d04585648bbfce46b38b4725fd341aaa56
install/lib/install.lib.php
@@ -149,7 +149,7 @@
      } elseif(stristr($content,'CentOS release 5.3 (Final)')) {
         $distname = 'CentOS';
         $distver = '5.3';
         $distid = 'centos52';
         $distid = 'centos53';
         $distbaseid = 'fedora';
         swriteln("Operating System: CentOS 5.3 or compatible\n");
      } else {
@@ -159,7 +159,19 @@
         $distbaseid = 'fedora';
         swriteln("Operating System: Redhat or compatible, unknown version.\n");
      }
   }
   //** Gentoo
    elseif(file_exists("/etc/gentoo-release")) {
       $content = file_get_contents('/etc/gentoo-release');
        preg_match_all('/([0-9]{1,2})/', $content, $version);
       $distname = 'Gentoo';
       $distver = $version[0][0].$version[0][1];
       $distid = 'gentoo';
       $distbaseid = 'gentoo';
       swriteln("Operating System: Gentoo $distver or compatible\n");
      
   } else {
      die('unrecognized linux distribution');
@@ -606,7 +618,7 @@
}
function is_installed($appname) {
   exec('which '.escapeshellcmd($appname).' > /dev/null 2> /dev/null',$out);
   exec('which '.escapeshellcmd($appname).' 2> /dev/null',$out);
   if(isset($out[0]) && stristr($out[0],$appname)) {
      return true;
   } else {