Added Maintenance-Mode for updating

This commit is contained in:
int2001
2024-03-22 16:12:23 +00:00
parent 2418b08a49
commit 815905fce6

View File

@@ -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) {
}
}