From 132c1e9877c4e1c3694c1260e8467bc2e716514e Mon Sep 17 00:00:00 2001 From: Felipe Cardozo Date: Fri, 17 Nov 2023 19:22:30 -0300 Subject: [PATCH] fix data path --- cmd/photographer/exec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/photographer/exec.go b/cmd/photographer/exec.go index 6b932a6..932df77 100644 --- a/cmd/photographer/exec.go +++ b/cmd/photographer/exec.go @@ -22,7 +22,7 @@ func NewSnapshotExec(snapshotsPath, octezNodePath, tezosPath string) *SnapshotEx func (s *SnapshotExec) CreateSnapshot(historyMode snapshot.HistoryModeType) { log.Println("Creating snapshot.") - script := "mkdir -p " + s.snapshotsPath + " && cd " + s.snapshotsPath + " && " + s.octezNodeBinPath + " snapshot export --data-dir " + s.tezosPath + script := "mkdir -p " + s.snapshotsPath + " && cd " + s.snapshotsPath + " && " + s.octezNodeBinPath + " snapshot export --data-dir " + s.tezosPath + "/data" if historyMode == snapshot.ROLLING { script = script + " --rolling"