Complete URBM product rename

This commit is contained in:
Mikei386
2026-06-14 23:12:39 +02:00
parent 145e04153e
commit 4e9b6a10f3
35 changed files with 253 additions and 181 deletions
+3 -3
View File
@@ -3,7 +3,7 @@ declare(strict_types=1);
header('Content-Type: application/json');
$socket = '/run/backupper/backupper.sock';
$socket = '/run/urbm/urbm.sock';
$method = $_SERVER['REQUEST_METHOD'] ?? 'GET';
$path = $_GET['path'] ?? '/v1/health';
@@ -15,7 +15,7 @@ if (!preg_match('#^/v1/[A-Za-z0-9_./?=&%:-]*$#', $path) || str_contains($path, '
if (!file_exists($socket)) {
http_response_code(503);
echo json_encode(['error' => 'URBM daemon is not running']);
echo json_encode(['error' => 'Der URBM-Daemon läuft nicht']);
exit;
}
@@ -42,7 +42,7 @@ curl_close($curl);
if ($response === false) {
http_response_code(502);
echo json_encode(['error' => 'Daemon connection failed: ' . $error]);
echo json_encode(['error' => 'Verbindung zum URBM-Daemon fehlgeschlagen: ' . $error]);
exit;
}