"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "install/dist/lib/gentoo.lib.php" between
ISPConfig-3.2.3.tar.gz and ISPConfig-3.2.4.tar.gz

About: ISPConfig is an ISP management and Hosting Control Panel (for different Managed Services).

gentoo.lib.php  (ISPConfig-3.2.3):gentoo.lib.php  (ISPConfig-3.2.4)
skipping to change at line 533 skipping to change at line 533
} }
//* Create the ISPConfig database user in the local database //* Create the ISPConfig database user in the local database
$query = 'GRANT ALL ON ??.* TO ?@?'; $query = 'GRANT ALL ON ??.* TO ?@?';
if(!$this->db->query($query, $conf['powerdns']['database'], $conf ['mysql']['ispconfig_user'], 'localhost')) { if(!$this->db->query($query, $conf['powerdns']['database'], $conf ['mysql']['ispconfig_user'], 'localhost')) {
$this->error('Unable to create user for powerdns database Error: '.$this->db->errorMessage); $this->error('Unable to create user for powerdns database Error: '.$this->db->errorMessage);
} }
//* load the powerdns databse dump //* load the powerdns databse dump
if($conf['mysql']['admin_password'] == '') { if($conf['mysql']['admin_password'] == '') {
caselog("mysql --default-character-set=".$conf['mysql'][' charset']." -h '".$conf['mysql']['host']."' -u '".$conf['mysql']['admin_user']." ' '".$conf['powerdns']['database']."' < '".ISPC_INSTALL_ROOT."/install/sql/power dns.sql' &> /dev/null", caselog("mysql --default-character-set=".$conf['mysql'][' charset']." -h '".$conf['mysql']['host']."' -u '".$conf['mysql']['admin_user']." ' --force '".$conf['powerdns']['database']."' < '".ISPC_INSTALL_ROOT."/install/s ql/powerdns.sql' &> /dev/null",
__FILE__, __LINE__, 'read in ispconfig3.sql', 'co uld not read in powerdns.sql'); __FILE__, __LINE__, 'read in ispconfig3.sql', 'co uld not read in powerdns.sql');
} else { } else {
caselog("mysql --default-character-set=".$conf['mysql'][' charset']." -h '".$conf['mysql']['host']."' -u '".$conf['mysql']['admin_user']." ' -p'".$conf['mysql']['admin_password']."' '".$conf['powerdns']['database']."' < '".ISPC_INSTALL_ROOT."/install/sql/powerdns.sql' &> /dev/null", caselog("mysql --default-character-set=".$conf['mysql'][' charset']." -h '".$conf['mysql']['host']."' -u '".$conf['mysql']['admin_user']." ' -p'".$conf['mysql']['admin_password']."' --force '".$conf['powerdns']['databas e']."' < '".ISPC_INSTALL_ROOT."/install/sql/powerdns.sql' &> /dev/null",
__FILE__, __LINE__, 'read in ispconfig3.sql', 'co uld not read in powerdns.sql'); __FILE__, __LINE__, 'read in ispconfig3.sql', 'co uld not read in powerdns.sql');
} }
//* Create the powerdns config file //* Create the powerdns config file
$content = $this->get_template_file('pdns.local', true, true); // * get contents & insert db cred $content = $this->get_template_file('pdns.local', true, true); // * get contents & insert db cred
$content = str_replace('{powerdns_database}', $conf['powerdns'][' database'], $content); $content = str_replace('{powerdns_database}', $conf['powerdns'][' database'], $content);
$this->write_config_file($conf["powerdns"]["config_dir"].'/'.$con f["powerdns"]["config_file"], $content, 600, 'root', 'root'); $this->write_config_file($conf["powerdns"]["config_dir"].'/'.$con f["powerdns"]["config_file"], $content, 600, 'root', 'root');
//* Create symlink to init script to start the correct config fil e //* Create symlink to init script to start the correct config fil e
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)