mirror of
https://github.com/unraid/webgui.git
synced 2026-04-24 02:58:57 -05:00
Detect missing key when keyfile is deleted
This commit is contained in:
@@ -16,9 +16,10 @@ Tag="snowflake-o"
|
||||
?>
|
||||
<?
|
||||
$keyfile = file_exists($var['luksKeyfile']);
|
||||
$missing = file_exists('/var/tmp/missing.tmp');
|
||||
$encrypt = false;
|
||||
/* only one of $present, $missing, or $wrong will be true, or all will be false */
|
||||
$forced = $present = $missing = $wrong = false;
|
||||
$forced = $present = $wrong = false;
|
||||
foreach ($disks as $disk) {
|
||||
if (strpos($disk['fsType'],'luks:')!==false || ($disk['fsType']=='auto' && (strpos($var['defaultFsType'],'luks:')!==false || $disk['luksState']==2 || $disk['luksState']==3))) {
|
||||
$encrypt = true;
|
||||
|
||||
Reference in New Issue
Block a user