Blame SOURCES/0001-feat-default-config-file-location.patch

93f545
--- main.go.orig	2022-02-11 15:41:53.199642591 -0500
93f545
+++ main.go	2022-02-11 15:42:43.738219604 -0500
93f545
@@ -6,6 +6,7 @@
93f545
 	"fmt"
93f545
 	"net"
93f545
 	"os"
93f545
+	"path/filepath"
93f545
 	"strconv"
93f545
 	"strings"
93f545
 	"time"
93f545
@@ -21,7 +22,7 @@
93f545
 )
93f545
 
93f545
 func main() {
93f545
-	fs := flag.NewFlagSet("yggd-package-manager-worker", flag.ExitOnError)
93f545
+	fs := flag.NewFlagSet(filepath.Base(os.Args[0]), flag.ExitOnError)
93f545
 
93f545
 	var (
93f545
 		socketAddr    = ""
93f545
@@ -32,7 +33,7 @@
93f545
 	fs.StringVar(&socketAddr, "socket-addr", "", "dispatcher socket address")
93f545
 	fs.Var(&logLevel, "log-level", "log verbosity level (error (default), warn, info, debug, trace)")
93f545
 	fs.Var(&allowPatterns, "allow-pattern", "regular expression pattern to allow package operations\n(can be specified multiple times)")
93f545
-	_ = fs.String("config", "", "path to `file` containing configuration values (optional)")
74911d
+	_ = fs.String("config", filepath.Join("/", "etc", "rhc", "workers", "rhc-package-manager.toml"), "path to `file` containing configuration values (optional)")
93f545
 
93f545
 	ff.Parse(fs, os.Args[1:], ff.WithEnvVarPrefix("YGG"), ff.WithConfigFileFlag("config"), ff.WithConfigFileParser(fftoml.Parser))
93f545