algernon: update fix-hardcoded-paths.patch
This commit is contained in:
parent
d79e93ca6e
commit
d9ab0d692e
@ -1,18 +1,7 @@
|
||||
diff -uNr algernon-1.12.3/engine/config.go algernon-1.12.3.mod/engine/config.go
|
||||
--- algernon-1.12.3/engine/config.go 2019-02-19 17:14:55.000000000 +0200
|
||||
+++ algernon-1.12.3.mod/engine/config.go 2019-02-25 19:41:17.564347427 +0200
|
||||
@@ -273,16 +273,16 @@
|
||||
defaultLimitString: strconv.Itoa(10),
|
||||
|
||||
// Default Bolt database file, for some operating systems
|
||||
- defaultBoltFilename: "/tmp/algernon.db",
|
||||
+ defaultBoltFilename: "@TERMUX_PREFIX@/tmp/algernon.db",
|
||||
|
||||
// Default log file, for some operating systems
|
||||
- defaultLogFile: "/tmp/algernon.log",
|
||||
+ defaultLogFile: "@TERMUX_PREFIX@/var/log/algernon.log",
|
||||
|
||||
// Default filename for a Lua script that provides data to a template
|
||||
diff -uNr algernon-1.12.7/engine/config.go algernon-1.12.7.mod/engine/config.go
|
||||
--- algernon-1.12.7/engine/config.go 2020-03-24 22:48:26.000000000 +0200
|
||||
+++ algernon-1.12.7.mod/engine/config.go 2020-03-29 22:25:30.231409340 +0300
|
||||
@@ -289,7 +289,7 @@
|
||||
defaultLuaDataFilename: "data.lua",
|
||||
|
||||
// List of configuration filenames to check
|
||||
@ -21,10 +10,10 @@ diff -uNr algernon-1.12.3/engine/config.go algernon-1.12.3.mod/engine/config.go
|
||||
|
||||
// Compression speed over compactness
|
||||
cacheCompressionSpeed: true,
|
||||
diff -uNr algernon-1.12.3/engine/flags.go algernon-1.12.3.mod/engine/flags.go
|
||||
--- algernon-1.12.3/engine/flags.go 2019-02-19 17:14:55.000000000 +0200
|
||||
+++ algernon-1.12.3.mod/engine/flags.go 2019-02-25 19:42:16.171195391 +0200
|
||||
@@ -300,9 +300,9 @@
|
||||
diff -uNr algernon-1.12.7/engine/flags.go algernon-1.12.7.mod/engine/flags.go
|
||||
--- algernon-1.12.7/engine/flags.go 2020-03-24 22:48:26.000000000 +0200
|
||||
+++ algernon-1.12.7.mod/engine/flags.go 2020-03-29 22:24:25.286093743 +0300
|
||||
@@ -311,9 +311,9 @@
|
||||
switch {
|
||||
case ac.productionMode:
|
||||
// Use system directories
|
||||
@ -37,9 +26,9 @@ diff -uNr algernon-1.12.3/engine/flags.go algernon-1.12.3.mod/engine/flags.go
|
||||
ac.cacheMode = cachemode.Production
|
||||
ac.serverMode = true
|
||||
case ac.devMode:
|
||||
diff -uNr algernon-1.12.3/engine/mime.go algernon-1.12.3.mod/engine/mime.go
|
||||
--- algernon-1.12.3/engine/mime.go 2019-02-19 17:14:55.000000000 +0200
|
||||
+++ algernon-1.12.3.mod/engine/mime.go 2019-02-25 19:42:57.227988150 +0200
|
||||
diff -uNr algernon-1.12.7/engine/mime.go algernon-1.12.7.mod/engine/mime.go
|
||||
--- algernon-1.12.7/engine/mime.go 2020-03-24 22:48:26.000000000 +0200
|
||||
+++ algernon-1.12.7.mod/engine/mime.go 2020-03-29 22:24:25.286093743 +0300
|
||||
@@ -6,5 +6,5 @@
|
||||
|
||||
func (ac *Config) initializeMime() {
|
||||
@ -47,10 +36,10 @@ diff -uNr algernon-1.12.3/engine/mime.go algernon-1.12.3.mod/engine/mime.go
|
||||
- ac.mimereader = mime.New("/etc/mime.types", true)
|
||||
+ ac.mimereader = mime.New("@TERMUX_PREFIX@/etc/mime.types", true)
|
||||
}
|
||||
diff -uNr algernon-1.12.3/vendor/github.com/go-sql-driver/mysql/dsn.go algernon-1.12.3.mod/vendor/github.com/go-sql-driver/mysql/dsn.go
|
||||
--- algernon-1.12.3/vendor/github.com/go-sql-driver/mysql/dsn.go 2019-02-19 17:14:55.000000000 +0200
|
||||
+++ algernon-1.12.3.mod/vendor/github.com/go-sql-driver/mysql/dsn.go 2019-02-25 20:31:01.069051948 +0200
|
||||
@@ -88,7 +88,7 @@
|
||||
diff -uNr algernon-1.12.7/vendor/github.com/go-sql-driver/mysql/dsn.go algernon-1.12.7.mod/vendor/github.com/go-sql-driver/mysql/dsn.go
|
||||
--- algernon-1.12.7/vendor/github.com/go-sql-driver/mysql/dsn.go 2020-03-24 22:48:26.000000000 +0200
|
||||
+++ algernon-1.12.7.mod/vendor/github.com/go-sql-driver/mysql/dsn.go 2020-03-29 22:24:25.286093743 +0300
|
||||
@@ -111,7 +111,7 @@
|
||||
case "tcp":
|
||||
cfg.Addr = "127.0.0.1:3306"
|
||||
case "unix":
|
||||
@ -59,9 +48,9 @@ diff -uNr algernon-1.12.3/vendor/github.com/go-sql-driver/mysql/dsn.go algernon-
|
||||
default:
|
||||
return errors.New("default addr for network '" + cfg.Net + "' unknown")
|
||||
}
|
||||
diff -uNr algernon-1.12.3/vendor/github.com/xyproto/gopher-lua/utils.go algernon-1.12.3.mod/vendor/github.com/xyproto/gopher-lua/utils.go
|
||||
--- algernon-1.12.3/vendor/github.com/xyproto/gopher-lua/utils.go 2019-02-19 17:14:55.000000000 +0200
|
||||
+++ algernon-1.12.3.mod/vendor/github.com/xyproto/gopher-lua/utils.go 2019-02-25 20:30:26.585626361 +0200
|
||||
diff -uNr algernon-1.12.7/vendor/github.com/xyproto/gopher-lua/utils.go algernon-1.12.7.mod/vendor/github.com/xyproto/gopher-lua/utils.go
|
||||
--- algernon-1.12.7/vendor/github.com/xyproto/gopher-lua/utils.go 2020-03-24 22:48:26.000000000 +0200
|
||||
+++ algernon-1.12.7.mod/vendor/github.com/xyproto/gopher-lua/utils.go 2020-03-29 22:24:25.286093743 +0300
|
||||
@@ -156,7 +156,7 @@
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user