| | |
| | | $db_id = parent::getXPathValue($sxe, '//db:id');
|
| | | if(empty($db_id)) return; // No database needed
|
| | |
|
| | | /*
|
| | | /* WARNING: if this will ever be uncommented please check the updated prefix handling for user and db names!!!
|
| | | * |
| | | // Set the database owner to the domain owner
|
| | | // ISPConfig identifies the owner by the sys_groupid (not sys_userid!)
|
| | | // so sys_userid can be set to any value
|
| | |
| | | if(!isset($task['instance_id'])) $task['instance_id'] = $instanceid;
|
| | |
|
| | | // Download aps package
|
| | | if(!file_exists($this->packages_dir.'/'.$task['path'])) {
|
| | | if(!file_exists($this->packages_dir.'/'.$task['path']) || filesize($this->packages_dir.'/'.$task['path']) == 0) {
|
| | | $ch = curl_init();
|
| | | $fh = fopen($this->packages_dir.'/'.$task['path'], 'wb');
|
| | | curl_setopt($ch, CURLOPT_FILE, $fh);
|