Docker and libvirt disabled by default.

Permit removing unRAID array if no devices assigned.
This commit is contained in:
Tom Mortensen
2024-06-24 23:28:52 -07:00
parent 30b76de196
commit 90cbff0058
2 changed files with 3 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/php -q
<?PHP
/* Copyright 2015-2023, Lime Technology
/* Copyright 2015-2024, Lime Technology
* Copyright 2015-2016, Guilherme Jardim, Eric Schultz, Jon Panozzo.
* Copyright 2012-2023, Bergware International.
*
@@ -16,6 +16,7 @@
$cfgfile = "/boot/config/docker.cfg";
$cfg_defaults = [
"DOCKER_ENABLED" => "no",
"DOCKER_NETWORK_TYPE" => "1",
"DOCKER_IMAGE_FILE" => "/mnt/user/system/docker/docker.img",
"DOCKER_IMAGE_SIZE" => "20",
"DOCKER_APP_CONFIG_PATH" => "/mnt/user/appdata/",

View File

@@ -349,7 +349,7 @@ function array_slots() {
$echo[] = "<input type='hidden' name='csrf_token' value='"._var($var,'csrf_token')."'>";
$echo[] = "<input type='hidden' name='changeSlots' value='apply'>";
$echo[] = "<select class='narrow' name='SYS_ARRAY_SLOTS' onChange='devices.start();this.form.submit()'>";
if (_var($var,'mdState')=='ERROR:NO_DEVICES' || (_var($var,'mdState')=='STOPPED' && _var($var,'mdNumDisks')=='0'))
if (_var($var,'mdNumDisks')=='0')
$echo[] = "<option value='0'>none</option>";
for ($n=$min; $n<=$max; $n++) {
$selected = $n==_var($var,'SYS_ARRAY_SLOTS') ? ' selected' : '';