Skip to content

Commit

Permalink
fix data path
Browse files Browse the repository at this point in the history
  • Loading branch information
fraidev committed Nov 17, 2023
1 parent 78c5488 commit 132c1e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/photographer/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 132c1e9

Please sign in to comment.