mirror of
https://github.com/unraid/webgui.git
synced 2026-01-06 17:49:58 -06:00
Merge pull request #1629 from Squidly271/patch-21
Docker ignore empty paths
This commit is contained in:
@@ -270,6 +270,8 @@ function xmlToCommand($xml, $create_paths=false) {
|
||||
$Mode = strval($config['Mode']);
|
||||
if ($confType != "device" && !strlen($containerConfig)) continue;
|
||||
if ($confType == "path") {
|
||||
if ( ! trim($hostConfig) || ! trim($containerConfig) )
|
||||
continue;
|
||||
$Volumes[] = escapeshellarg($hostConfig).':'.escapeshellarg($containerConfig).':'.escapeshellarg($Mode);
|
||||
if (!file_exists($hostConfig) && $create_paths) {
|
||||
@mkdir($hostConfig, 0777, true);
|
||||
|
||||
Reference in New Issue
Block a user