tbrehm
2010-09-26 4b72c51b4cfef36cf2e84f0791e0e85eb899a7f2
install/dist/lib/opensuse.lib.php
@@ -518,7 +518,8 @@
      exec('mkdir -p /var/log/ispconfig/httpd');
      
      //if(is_file('/etc/suphp.conf')) {
      replaceLine('/etc/suphp.conf','php=php','x-httpd-suphp=php:/srv/www/cgi-bin/php5',0,0);
      replaceLine('/etc/suphp.conf','php=php','x-httpd-suphp="php:/srv/www/cgi-bin/php5"',0,0);
      replaceLine('/etc/suphp.conf','php="php','x-httpd-suphp="php:/srv/www/cgi-bin/php5"',0,0);
      replaceLine('/etc/suphp.conf','docroot=','docroot=/srv/www',0,0);
      replaceLine('/etc/suphp.conf','umask=0077','umask=0022',0);
      //}
@@ -632,8 +633,7 @@
        unset($iptables_location);
   }
   public function install_ispconfig()
    {
      global $conf;
@@ -837,6 +837,12 @@
         $content = str_replace('{vhost_port_listen}', '', $content);
      }
      
      if(is_file('/usr/local/ispconfig/interface/ssl/ispserver.crt') && is_file('/usr/local/ispconfig/interface/ssl/ispserver.key')) {
         $content = str_replace('{ssl_comment}', '', $content);
      } else {
         $content = str_replace('{ssl_comment}', '#', $content);
      }
      $content = str_replace('/var/www/', '/srv/www/', $content);
      
      wf("$vhost_conf_dir/ispconfig.vhost", $content);
@@ -895,8 +901,8 @@
      exec('chmod a+rx /usr/local/ispconfig/interface/web');
      
      //* Create the ispconfig log directory
      if(!is_dir('/var/log/ispconfig')) mkdir('/var/log/ispconfig');
      if(!is_file('/var/log/ispconfig/ispconfig.log')) exec('touch /var/log/ispconfig/ispconfig.log');
      if(!is_dir($conf['ispconfig_log_dir'])) mkdir($conf['ispconfig_log_dir']);
      if(!is_file($conf['ispconfig_log_dir'].'/ispconfig.log')) exec('touch '.$conf['ispconfig_log_dir'].'/ispconfig.log');
      
      exec('mv /usr/local/ispconfig/server/scripts/run-getmail.sh /usr/local/bin/run-getmail.sh');
      exec('chown getmail /usr/local/bin/run-getmail.sh');
@@ -986,4 +992,4 @@
}
?>
?>