Fix finding master file
This commit is contained in:
parent
5c4bbaabba
commit
3d69090767
|
@ -275,10 +275,11 @@ trait helperfunctions {
|
||||||
dbug($request);
|
dbug($request);
|
||||||
$filesToGet = array();
|
$filesToGet = array();
|
||||||
$provisionerUrl = "https://github.com/dkgroot/provision_sccp/raw/master/";
|
$provisionerUrl = "https://github.com/dkgroot/provision_sccp/raw/master/";
|
||||||
if (!$tftpBootXml = simplexml_load_file("{$this->sccppath['tftp_path']}/masterFilesStructure.xml")) {
|
if (!file_exists("{$this->sccppath['tftp_path']}/masterFilesStructure.xml")) {
|
||||||
$this->getFileListFromProvisioner();
|
$this->getFileListFromProvisioner();
|
||||||
$tftpBootXml = simplexml_load_file("{$this->sccppath['tftp_path']}/masterFilesStructure.xml");
|
|
||||||
}
|
}
|
||||||
|
$tftpBootXml = simplexml_load_file("{$this->sccppath['tftp_path']}/masterFilesStructure.xml");
|
||||||
|
|
||||||
switch ($request['type']) {
|
switch ($request['type']) {
|
||||||
case 'firmware':
|
case 'firmware':
|
||||||
$device = $request['device'];
|
$device = $request['device'];
|
||||||
|
|
Loading…
Reference in a new issue