SHA256
1
0
forked from pool/MirrorCache

- Add temporary patch for default database name

* 0001-Default-db-name.patch

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=73
This commit is contained in:
Andrii Nikitin 2022-11-11 10:54:30 +00:00 committed by Git OBS Bridge
parent e309fc0538
commit 7df6ec6f4f
3 changed files with 21 additions and 1 deletions

View File

@ -0,0 +1,14 @@
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};

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Nov 11 10:42:10 UTC 2022 - Andrii Nikitin <andrii.nikitin@suse.com>
- Add temporary patch for default database name
* 0001-Default-db-name.patch
-------------------------------------------------------------------
Fri Nov 11 09:42:10 UTC 2022 - Andrii Nikitin <andrii.nikitin@suse.com>

View File

@ -29,6 +29,7 @@ License: GPL-2.0-or-later
Group: Productivity/Networking/Web/Servers
URL: https://github.com/openSUSE/MirrorCache
Source0: %{name}-%{version}.tar.xz
Patch0: 0001-Default-db-name.patch
Source1: cache.tar.xz
Source2: %{name}-user.conf
Source3: %{name}-tmpfilesd.conf
@ -44,7 +45,7 @@ BuildArch: noarch
Mirror redirector web service, which automatically scans the main server and mirrors
%prep
%setup -q -a1
%autosetup -p1
%build
# make {?_smp_mflags}