summaryrefslogtreecommitdiff
path: root/public/index.php
diff options
context:
space:
mode:
authorJonas Kohl2024-11-08 09:18:57 +0100
committerJonas Kohl2024-11-08 09:18:57 +0100
commitf2b25e78c654de7d58fcb5810670b99363a68f23 (patch)
tree0f3509e5e9a47760c547e49fd67d7a166bf2183c /public/index.php
parent2101fd4e15d8b4bba06667aba61b51e89cb1321f (diff)
Try to fix permissions
Diffstat (limited to 'public/index.php')
-rw-r--r--public/index.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/public/index.php b/public/index.php
index b6ac78e..ac41acc 100644
--- a/public/index.php
+++ b/public/index.php
@@ -116,7 +116,10 @@ if (isset($_POST["code"]) && strlen($_POST["code"]) <= 16383) {
"csrf" => $csrf,
];
- delTree($runnerDir);
+ if ($isInDocker)
+ exec("su-exec root rm -rf '$runnerDir'");
+ else
+ delTree($runnerDir);
echo json_encode($result);
exit;