From 139292900913869ce2424d1cffe46af316f8ecdd Mon Sep 17 00:00:00 2001 From: "Rene Vergara A." Date: Thu, 13 Jun 2024 22:28:09 -0400 Subject: [PATCH] dkr001 - Data folder defined -> /home/zenith/y Configuration file moved to data folder Database file moved to data folder Log file moved to data folder --- app/Main.hs | 2 +- src/Zenith/CLI.hs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Main.hs b/app/Main.hs index 269ec1b..fc62d88 100644 --- a/app/Main.hs +++ b/app/Main.hs @@ -199,7 +199,7 @@ processUri user pwd = main :: IO () main = do - config <- load ["zenith.cfg"] + config <- load ["/home/zenith/zenith.cfg"] args <- getArgs dbFilePath <- require config "dbFilePath" nodeUser <- require config "nodeUser" diff --git a/src/Zenith/CLI.hs b/src/Zenith/CLI.hs index f107dfd..776642b 100644 --- a/src/Zenith/CLI.hs +++ b/src/Zenith/CLI.hs @@ -1576,7 +1576,7 @@ sendTransaction pool chan zHost zPort znet accId bl amt ua memo = do BC.writeBChan chan $ TickMsg "Preparing transaction..." outUA <- parseAddress ua res <- - runFileLoggingT "zenith.log" $ + runFileLoggingT "/home/zenith/zenith.log" $ prepareTx pool zHost zPort znet accId bl amt outUA memo BC.writeBChan chan $ TickMsg "Transaction ready, sending to Zebra..." case res of