Small updates to escrow script

This commit is contained in:
Pinga 2024-11-25 14:02:23 +02:00
parent e9744a2f70
commit 532ab0a2d2
2 changed files with 27 additions and 2 deletions

View file

@ -21,13 +21,13 @@ $configPath = __DIR__ . '/backup-upload.json';
if (!file_exists($configPath)) {
$log = setupLogger($logFilePath, 'Backup_Upload');
$log->error("Configuration file not found: $configPath");
exit();
exit(1);
}
$config = json_decode(file_get_contents($configPath), true);
if ($config === null) {
$log->error("Invalid JSON format in configuration file: $configPath");
exit();
exit(1);
}
// Get storage type from config