mirror of
https://github.com/unraid/webgui.git
synced 2026-01-03 16:14:54 -06:00
Update VMajax.php
This commit is contained in:
@@ -358,7 +358,7 @@ case 'change-media-both':
|
||||
$cmdstr = "virsh attach-disk ".escapeshellarg($domName)." ".escapeshellarg($file2)." hdb --type cdrom --targetbus sata --config" ; #PHPS - Changed
|
||||
} else {
|
||||
if ($file2 == "") $cmdstr = "virsh change-media ".escapeshellarg($domName)." hdb --eject --current";#PHPS - Changed
|
||||
else $cmdstr = "virsh change-media ".escapeshellarg($domName)." hdb '".escapeshellarg($file2)."' "; #PHPS - Changed
|
||||
else $cmdstr = "virsh change-media ".escapeshellarg($domName)." hdb ".escapeshellarg($file2); #PHPS - Changed
|
||||
}
|
||||
$rtn=shell_exec($cmdstr)
|
||||
? ['success' => true]
|
||||
|
||||
Reference in New Issue
Block a user