Skip to content
This repository was archived by the owner on Jun 9, 2024. It is now read-only.

Commit 04a4b4e

Browse files
author
Yureka
committed
add talpath build flag
This allows distro packagers to install the root TALs into an absolute path Signed-off-by: Yureka <[email protected]>
1 parent 8090993 commit 04a4b4e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/octorpki/octorpki.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,12 @@ import (
4141
var (
4242
version = ""
4343
buildinfos = ""
44+
talpath = ""
4445
AppVersion = "OctoRPKI " + version + " " + buildinfos
4546
AllowRoot = flag.Bool("allow.root", false, "Allow starting as root")
4647

4748
// Validator Options
48-
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")
49+
RootTAL = flag.String("tal.root", fmt.Sprintf("%vtals/afrinic.tal,%vtals/apnic.tal,%vtals/arin.tal,%vtals/lacnic.tal,%vtals/ripe.tal", talpath, talpath, talpath, talpath, talpath), "List of TAL separated by comma")
4950
TALNames = flag.String("tal.name", "AFRINIC,APNIC,ARIN,LACNIC,RIPE", "Name of the TALs")
5051
UseManifest = flag.Bool("manifest.use", true, "Use manifests file to explore instead of going into the repository")
5152
Basepath = flag.String("cache", "cache/", "Base directory to store certificates")

0 commit comments

Comments
 (0)