tbrehm
2010-10-26 2ef13cd37e25cab3febdf0e77ea8a71da3f5fd6a
install/lib/installer_base.lib.php
@@ -286,6 +286,8 @@
       *   1) it is a single server
       *   2) it is the MASTER of n clients
      */
      $hosts = array();
      if($conf['mysql']['master_slave_setup'] == 'y') {
         /*
          * it is a master-slave - Setup so the slave has to grant its rights in the master
@@ -320,7 +322,7 @@
         }
      }
      
      if(is_array($hosts)) {
      if(count($hosts) > 0) {
      foreach($hosts as $host => $value) {
         /*
          * If a pwd exists, this means, we have to add the new user (and his pwd).
@@ -1028,6 +1030,10 @@
         replaceLine('/etc/webalizer/webalizer.conf','#Incremental','Incremental     yes',0,0);
         replaceLine('/etc/webalizer/webalizer.conf','#HistoryName','HistoryName     webalizer.hist',0,0);
      }
      // Check the awsatst script
      if(!is_dir('/usr/share/awstats/tools')) mkdir('/usr/share/awstats/tools');
      if(!file_exists('/usr/share/awstats/tools/awstats_buildstaticpages.pl') && file_exists('/usr/share/doc/awstats/examples/awstats_buildstaticpages.pl')) symlink('/usr/share/doc/awstats/examples/awstats_buildstaticpages.pl','/usr/share/awstats/tools/awstats_buildstaticpages.pl');
      //* add a sshusers group
      $command = 'groupadd sshusers';