Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

Commit 6fa6493

Browse files
authored
Merge pull request #3465 from input-output-hk/cbr-391-launcher-working-dir
[CBR-391] launcher: add a workingDir setting to the launcher config
2 parents c14a5f2 + 05a0720 commit 6fa6493

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/src/launcher/Main.hs

+3
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ data LauncherOptions = LO
9696
, loWalletArgs :: ![Text]
9797
, loWalletLogging :: !Bool
9898
, loWalletLogPath :: !(Maybe FilePath)
99+
, loWorkingDir :: !FilePath
99100
, loX509ToolPath :: !FilePath
100101
, loUpdaterPath :: !FilePath
101102
, loUpdaterArgs :: ![Text]
@@ -284,6 +285,8 @@ main =
284285

285286
lo@LO {..} <- getLauncherOptions
286287

288+
Sys.setCurrentDirectory loWorkingDir
289+
287290
-- Launcher logs should be in public directory
288291
let launcherLogsPrefix = (</> "pub") <$> loLogsPrefix
289292
-- Add options specified in loConfiguration but not in loNodeArgs to loNodeArgs.

0 commit comments

Comments
 (0)