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

Commit

Permalink
add talpath build flag
Browse files Browse the repository at this point in the history
This allows distro packagers to install the root TALs into an absolute path

Signed-off-by: Yureka <[email protected]>
  • Loading branch information
Yureka committed Oct 17, 2023
1 parent 8090993 commit fd0c4e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/octorpki/octorpki.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit fd0c4e9

Please sign in to comment.