tbrehm
2010-06-09 14443ca481e2f25cb3f927eec27d7e992dded79f
Do not make a backup copy of the mysql.conf file from pure-ftpd on updates.
1 files modified
2 ■■■■■ changed files
install/lib/installer_base.lib.php 2 ●●●●● patch | view | raw | blame | history
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);