From 815905fce6d1349dfd0576dc681e99112c6fe785 Mon Sep 17 00:00:00 2001 From: int2001 Date: Fri, 22 Mar 2024 16:12:23 +0000 Subject: [PATCH] Added Maintenance-Mode for updating --- application/controllers/Debug.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application/controllers/Debug.php b/application/controllers/Debug.php index 6780b1ba7..c3afa7b6b 100644 --- a/application/controllers/Debug.php +++ b/application/controllers/Debug.php @@ -153,9 +153,11 @@ class Debug extends CI_Controller public function selfupdate() { if (file_exists('.git')) { try { + $st=exec('touch ./.maintenance'); $st=exec('git stash push --include-untracked'); $st=exec('git pull --rebase'); $st=exec('git stash pop'); + $st=exec('rm ./.maintenance'); } catch (\Throwable $th) { } }