tbrehm
2008-04-23 b722a1ad006c5f032eab160bd5795281cda329ac
install/lib/installer_base.lib.php
@@ -153,6 +153,17 @@
      }
   }
   
   //** Create a recors in the
   public function add_database_server_record() {
      $server_ini_content = rf("tpl/server.ini.master");
      $server_ini_content = addslashes($server_ini_content);
      $sql = "INSERT INTO `server` (`sys_userid`, `sys_groupid`, `sys_perm_user`, `sys_perm_group`, `sys_perm_other`, `server_name`, `mail_server`, `web_server`, `dns_server`, `file_server`, `db_server`, `vserver_server`, `config`, `updated`, `active`) VALUES (1, 1, 'riud', 'riud', 'r', 'Server', 1, 1, 1, 1, 1, 1, '$server_ini_content', 0, 1);";
      $this->db->query($sql);
      $this->conf['server_id'] = $this->db->insertID();
   }
    //** writes postfix configuration files
    private function process_postfix_config($configfile)
@@ -576,8 +587,9 @@
      caselog($command.' &> /dev/null', __FILE__, __LINE__, "EXECUTED: $command", "Failed to execute the command $command");
      
      //* Create a symlink, so ISPConfig is accessible via web
      $command = "ln -s $install_dir/interface/web/ /var/www/ispconfig";
      caselog($command.' &> /dev/null', __FILE__, __LINE__, "EXECUTED: $command", "Failed to execute the command $command");
      // Replaced by a separate vhost definition for port 8080
      // $command = "ln -s $install_dir/interface/web/ /var/www/ispconfig";
      // caselog($command.' &> /dev/null', __FILE__, __LINE__, "EXECUTED: $command", "Failed to execute the command $command");
      
      //* Create the config file for ISPConfig interface
      $configfile = 'config.inc.php';
@@ -681,6 +693,10 @@
      if(!is_link("$vhost_conf_enabled_dir/ispconfig.vhost")) {
         exec("ln -s $vhost_conf_dir/ispconfig.vhost $vhost_conf_enabled_dir/ispconfig.vhost");
      }
      // Make the Clamav log files readable by ISPConfig
      exec('chmod +r /var/log/clamav/clamav.log');
      exec('chmod +r /var/log/clamav/freshclam.log');
   }
   
   public function install_crontab()