From 951384a7135020b24d7a0ea351e7ec84aeb5ea66 Mon Sep 17 00:00:00 2001 From: bryan newbold Date: Fri, 8 Nov 2024 10:05:06 -0800 Subject: [PATCH] relay: env var for persist dir, and alt env var for data dir --- cmd/bigsky/main.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cmd/bigsky/main.go b/cmd/bigsky/main.go index c4d7d7b28..3009db3db 100644 --- a/cmd/bigsky/main.go +++ b/cmd/bigsky/main.go @@ -85,7 +85,7 @@ func run(args []string) error { Name: "data-dir", Usage: "path of directory for CAR files and other data", Value: "data/bigsky", - EnvVars: []string{"DATA_DIR"}, + EnvVars: []string{"RELAY_DATA_DIR", "DATA_DIR"}, }, &cli.StringFlag{ Name: "plc-host", @@ -112,8 +112,9 @@ func run(args []string) error { EnvVars: []string{"RELAY_METRICS_LISTEN", "BGS_METRICS_LISTEN"}, }, &cli.StringFlag{ - Name: "disk-persister-dir", - Usage: "set directory for disk persister (implicitly enables disk persister)", + Name: "disk-persister-dir", + Usage: "set directory for disk persister (implicitly enables disk persister)", + EnvVars: []string{"RELAY_PERSISTER_DIR"}, }, &cli.StringFlag{ Name: "admin-key",