20735: Fix default workbench2-source path.
authorTom Clegg <tom@curii.com>
Fri, 11 Aug 2023 13:47:10 +0000 (09:47 -0400)
committerTom Clegg <tom@curii.com>
Tue, 15 Aug 2023 18:04:54 +0000 (14:04 -0400)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

lib/boot/cmd.go

index 4b7284556eef20c17594ec5115238d47f308455b..6740993dab709f65858c6c8c1796d83b25838bd3 100644 (file)
@@ -69,7 +69,9 @@ func (bcmd bootCommand) run(ctx context.Context, prog string, args []string, std
        flags.StringVar(&super.ClusterType, "type", "production", "cluster `type`: development, test, or production")
        flags.StringVar(&super.ListenHost, "listen-host", "localhost", "host name or interface address for internal services whose InternalURLs are not configured")
        flags.StringVar(&super.ControllerAddr, "controller-address", ":0", "desired controller address, `host:port` or `:port`")
-       flags.StringVar(&super.Workbench2Source, "workbench2-source", "../arvados-workbench2", "path to arvados-workbench2 source tree")
+       // Default for -workbench2-source is where `arvados-server
+       // install` puts its checkout.
+       flags.StringVar(&super.Workbench2Source, "workbench2-source", "/var/lib/arvados/arvados-workbench2", "path to arvados-workbench2 source tree")
        flags.BoolVar(&super.NoWorkbench1, "no-workbench1", false, "do not run workbench1")
        flags.BoolVar(&super.NoWorkbench2, "no-workbench2", false, "do not run workbench2")
        flags.BoolVar(&super.OwnTemporaryDatabase, "own-temporary-database", false, "bring up a postgres server and create a temporary database")