From 4d6fe8f4205f9e70fb646d8b26455a2009f2a2ce Mon Sep 17 00:00:00 2001
From: Mainfrezzer <35963833+Mainfrezzer@users.noreply.github.com>
Date: Sat, 22 Feb 2025 00:45:13 +0100
Subject: [PATCH] Fix automatic shutdown while being logged in
---
emhttp/plugins/dynamix/include/Boot.php | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/emhttp/plugins/dynamix/include/Boot.php b/emhttp/plugins/dynamix/include/Boot.php
index c2b6a6987..8400954d5 100644
--- a/emhttp/plugins/dynamix/include/Boot.php
+++ b/emhttp/plugins/dynamix/include/Boot.php
@@ -157,6 +157,9 @@ $(document).ajaxSend(function(elm, xhr, s){
+if ($_SERVER['REQUEST_METHOD'] === 'POST'){
+
+
$safemode = '/boot/unraidsafemode';
$progress = (_var($var,'fsProgress')!='') ? "
{$var['fsProgress']}" : "
";
@@ -187,5 +190,6 @@ default:
echo '';
echo '