MirrorCache/0001-Default-db-name.patch

15 lines
615 B
Diff
Raw Normal View History

diff --git a/lib/MirrorCache/Config.pm b/lib/MirrorCache/Config.pm
index fb5565d..2388cf3 100644
--- a/lib/MirrorCache/Config.pm
+++ b/lib/MirrorCache/Config.pm
@@ -28,7 +28,7 @@ has dbuser => $ENV{MIRRORCACHE_DBUSER};
has dbpass => $ENV{MIRRORCACHE_DBPASS};
has dbhost => $ENV{MIRRORCACHE_DBHOST};
has dbport => $ENV{MIRRORCACHE_DBPORT};
-has dbdb => $ENV{MIRRORCACHE_DB};
+has dbdb => $ENV{MIRRORCACHE_DB} // 'mirrorcache';
has dsn => $ENV{MIRRORCACHE_DSN};
has dsn_replica => $ENV{MIRRORCACHE_DSN_REPLICA};
has redirect => $ENV{MIRRORCACHE_REDIRECT};