Complete URBM product rename
This commit is contained in:
+3
-3
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user