From fd0c4e95b880c463430c91ce1f86205b9309399b Mon Sep 17 00:00:00 2001 From: Yureka Date: Wed, 18 Oct 2023 00:21:15 +0200 Subject: [PATCH] add talpath build flag This allows distro packagers to install the root TALs into an absolute path Signed-off-by: Yureka --- cmd/octorpki/octorpki.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/octorpki/octorpki.go b/cmd/octorpki/octorpki.go index a4b2d6b..d0badaa 100644 --- a/cmd/octorpki/octorpki.go +++ b/cmd/octorpki/octorpki.go @@ -41,11 +41,12 @@ import ( var ( version = "" buildinfos = "" + talpath = "tals" AppVersion = "OctoRPKI " + version + " " + buildinfos AllowRoot = flag.Bool("allow.root", false, "Allow starting as root") // Validator Options - RootTAL = flag.String("tal.root", "tals/afrinic.tal,tals/apnic.tal,tals/arin.tal,tals/lacnic.tal,tals/ripe.tal", "List of TAL separated by comma") + RootTAL = flag.String("tal.root", fmt.Sprintf("%v/afrinic.tal,%v/apnic.tal,%v/arin.tal,%v/lacnic.tal,%v/ripe.tal", talpath, talpath, talpath, talpath, talpath), "List of TAL separated by comma") TALNames = flag.String("tal.name", "AFRINIC,APNIC,ARIN,LACNIC,RIPE", "Name of the TALs") UseManifest = flag.Bool("manifest.use", true, "Use manifests file to explore instead of going into the repository") Basepath = flag.String("cache", "cache/", "Base directory to store certificates")