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:
markjcrane
2015-11-04 19:59:27 -07:00
parent f28b6aab4c
commit 98bec06c59
3 changed files with 4 additions and 4 deletions

View File

@@ -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";
}

View File

@@ -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";
}

View File

@@ -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)) {