ports/security/vulsrepo/files/patch-main.go
Palle Girgensohn 952fa7cc8e security/vulsrepo: new port
vulsrepo runs a small custom web server presenting a web gui for
the vulnerabilty reports created by security/vuls.
2024-02-25 00:37:45 +01:00

12 lines
410 B
Go

--- main.go.orig 2021-12-20 04:40:08 UTC
+++ main.go
@@ -134,8 +134,7 @@ func loadConfig() {
}
func loadConfig() {
- fpath, _ := (os.Executable())
- _, err := toml.DecodeFile(filepath.Dir(fpath)+"/vulsrepo-config.toml", &config)
+ _, err := toml.DecodeFile("%%PREFIX%%/etc/vulsrepo-config.toml", &config)
if err != nil {
_, err := toml.DecodeFile("./vulsrepo-config.toml", &config)
if err != nil {