File tree 1 file changed +8
-3
lines changed
cardano-db-tool/src/Cardano/DbTool
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import Ouroboros.Network.Block hiding (blockHash)
18
18
19
19
import Paths_cardano_db_tool (version )
20
20
21
+ import System.Info (arch , os )
21
22
import System.IO (hFlush , stdout )
22
23
23
24
newtype PrepareSnapshotArgs = PrepareSnapshotArgs
@@ -93,12 +94,16 @@ runPrepareSnapshotAux firstTry args = do
93
94
majorStr = case mMajor of
94
95
Nothing -> " "
95
96
Just majorV -> " schema-" ++ show majorV
97
+ cmdStr = " Create a snapshot with:\n "
98
+ ++ case os of
99
+ " freebsd" -> " cardano-db-sync-pgsql-setup"
100
+ _otherwise -> " scripts/postgresql-setup.sh"
101
+ ++ " --create-snapshot db-sync-snapshot-"
96
102
putStrLn $ concat
97
- [ " Create a snapshot with:\n "
98
- , " scripts/postgresql-setup.sh --create-snapshot db-sync-snapshot-"
103
+ [ cmdStr
99
104
, majorStr
100
105
, " -block-"
101
106
, show bblockNo
102
- , " -x86_64 "
107
+ , " -" ++ arch ++ " "
103
108
, fp
104
109
]
You can’t perform that action at this time.
0 commit comments