File: Adjust-mirrorbits.conf-for-Debian.patch

package info (click to toggle)
mirrorbits 0.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 984 kB
  • sloc: sh: 675; makefile: 93
file content (48 lines) | stat: -rw-r--r-- 1,522 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
From: Arnaud Rebillout <arnaudr@kali.org>
Date: Wed, 14 Jun 2023 15:24:05 +0700
Subject: Adjust mirrorbits.conf for Debian

- Default templates path
- Default GeoIP database location

Forwarded: not-needed, Debian-specific
---
 config/config.go | 2 +-
 mirrorbits.conf  | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/config/config.go b/config/config.go
index cc21fe7..b575137 100644
--- a/config/config.go
+++ b/config/config.go
@@ -42,7 +42,7 @@ func defaultConfig() Configuration {
 		RedisDB:                0,
 		LogDir:                 "",
 		TraceFileLocation:      "",
-		GeoipDatabasePath:      "/usr/share/GeoIP/",
+		GeoipDatabasePath:      "/var/lib/GeoIP/",
 		ConcurrentSync:         5,
 		ScanInterval:           30,
 		CheckInterval:          1,
diff --git a/mirrorbits.conf b/mirrorbits.conf
index e373ebd..1d223f4 100644
--- a/mirrorbits.conf
+++ b/mirrorbits.conf
@@ -8,7 +8,7 @@
 # Repository: /srv/repo
 
 ## Path to the templates (default autodetect)
-# Templates: /usr/share/mirrorbits/
+# Templates: /usr/share/mirrorbits/templates/
 
 ## A local path or URL containing the JavaScript used by the templates.
 ## If this is not set (the default), the JavaScript will just be loaded
@@ -19,7 +19,7 @@
 # LogDir: /var/log/mirrorbits
 
 ## Path to the GeoIP2 mmdb databases
-# GeoipDatabasePath: /usr/share/GeoIP/
+# GeoipDatabasePath: /var/lib/GeoIP/
 
 ## OutputMode can take on the three values:
 ##  - redirect: HTTP redirect to the destination file on the selected mirror