From b19cac35f807c44bf5a3cef39e8a02996195ed39 Mon Sep 17 00:00:00 2001 From: Andreas Romeyke <andreas.romeyke@slub-dresden.de> Date: Mon, 14 Apr 2025 17:56:58 +0200 Subject: [PATCH] - set default elastic search host, if no config given nor config file exists --- lib/SLUB/LZA/TA.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/SLUB/LZA/TA.pm b/lib/SLUB/LZA/TA.pm index bd213af..32dbf9e 100644 --- a/lib/SLUB/LZA/TA.pm +++ b/lib/SLUB/LZA/TA.pm @@ -106,7 +106,7 @@ sub common_global_opt_spec () { [], [ "debug|D" => "enable user agent debug output" ], [ "verbose|v" => "enable verbose output" ], - [ "elasticsearch-host|e=s" => "host adress where Archivematica's ElasticSearch runs, overrides config value (command 'init')" ], + [ "elasticsearch-host|e=s" => "host adress where Archivematica's ElasticSearch runs, overrides config value (command 'init')", {default => 'localhost'} ], [ "elasticsearch-port|E=s" => "port of Archivematica's ElasticSearch, overrides config value (command 'init')", {default => 9200} ], [ "http-only" => "use HTTP instead HTTPS, overrides config value (command 'init')"], [ "permanent-volume|P=s@" => "path[s] to volume where Archivematica stores AIPs permanently, overrides config value (command 'init'), repeatable)"], -- GitLab