mirror of
https://github.com/unraid/webgui.git
synced 2026-01-05 00:59:48 -06:00
Docker and libvirt disabled by default.
Permit removing unRAID array if no devices assigned.
This commit is contained in:
@@ -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/",
|
||||
|
||||
@@ -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' : '';
|
||||
|
||||
Reference in New Issue
Block a user