Added code to prevent the excution of server scripts when the connect to the master db server fails.
| | |
| | | $app->log("Set Lock: ".$conf["temppath"].$conf["fs_div"].".ispconfig_lock", LOGLEVEL_DEBUG); |
| | | */ |
| | | |
| | | if($app->dbmaster->connect()) { |
| | | |
| | | // get the dalaog_id of the last performed record |
| | | $tmp_rec = $app->dbmaster->queryOneRecord("SELECT updated FROM server WHERE server_id = ".$conf["server_id"]); |
| | | $conf['last_datalog_id'] = (int)$tmp_rec['updated']; |
| | |
| | | // Load the plugins that are in the plugins-core folder |
| | | $app->plugins->loadPlugins('core'); |
| | | } |
| | | } else { |
| | | $app->log("Unable to connect to master server.",LOGLEVEL_ERROR); |
| | | } |
| | | |
| | | /* |
| | | // Remove lock |