tbrehm
2010-06-09 14443ca481e2f25cb3f927eec27d7e992dded79f
install/lib/installer_base.lib.php
@@ -815,12 +815,14 @@
      //* configure pure-ftpd for MySQL authentication against the ispconfig database
      $configfile = 'db/mysql.conf';
      /* We do not create a backup of thid config file as it would get included into the pure-ftpd configuration.
      if(is_file("$config_dir/$configfile")){
            copy("$config_dir/$configfile", "$config_dir/$configfile~");
        }
      if(is_file("$config_dir/$configfile~")){
            exec("chmod 400 $config_dir/$configfile~");
        }
      */
      $content = rf('tpl/pureftpd_mysql.conf.master');
      $content = str_replace('{mysql_server_ispconfig_user}', $conf["mysql"]["ispconfig_user"], $content);
      $content = str_replace('{mysql_server_ispconfig_password}', $conf["mysql"]["ispconfig_password"], $content);