mirror of
https://github.com/getnamingo/registry.git
synced 2025-06-30 08:03:18 +02:00
Small updates to escrow script
This commit is contained in:
parent
e9744a2f70
commit
532ab0a2d2
2 changed files with 27 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue