Change switch.provision.dir to provision.path.text. This indicates where to save the provisioning files on the file system.
This commit is contained in:
parent
d3d62295d6
commit
503461fca1
|
|
@ -288,7 +288,7 @@ require_once "resources/require.php";
|
|||
}
|
||||
|
||||
//write the provision files
|
||||
if (strlen($_SESSION['switch']['provision']['dir']) > 0) {
|
||||
if (strlen($_SESSION['provision']['path']['text']) > 0) {
|
||||
require_once "app/provision/provision_write.php";
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@ require_once "resources/require.php";
|
|||
}
|
||||
|
||||
//write the provision files
|
||||
if (strlen($_SESSION['switch']['provision']['dir']) > 0) {
|
||||
if (strlen($_SESSION['provision']['path']['text']) > 0) {
|
||||
require_once "app/provision/provision_write.php";
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -822,8 +822,8 @@ include "root.php";
|
|||
//$file_size = round(filesize($new_path)/1024, 2);
|
||||
//echo $this->template_dir."/".$device_template."/".$file_name." $file_size\n";
|
||||
//write the configuration to the directory
|
||||
if (strlen($_SESSION['switch']['provision']['dir']) > 0) {
|
||||
$dir_array = explode(";", $_SESSION['switch']['provision']['dir']);
|
||||
if (strlen($provision["path"]) > 0) {
|
||||
$dir_array = explode(";", $provision["path"]);
|
||||
foreach($dir_array as $directory) {
|
||||
|
||||
if (file_exists($this->template_dir."/".$device_template."/".$file_name)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue