Skip to content

Commit 892d249

Browse files
fix: constant
1 parent 7a655a4 commit 892d249

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/provision/mode_zfs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ func (j *provisionModeZfs) getPgConfig(name string, port uint) *PgConfig {
367367
return &PgConfig{
368368
Version: j.config.PgVersion,
369369
Bindir: j.config.PgBindir,
370-
Datadir: MOUNT_PREFIX + name + j.config.PgDataSubdir,
370+
Datadir: ZfsGetMountPrefix() + name + j.config.PgDataSubdir,
371371
Host: "localhost",
372372
Port: port,
373373
Name: "postgres",

src/provision/zfs.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,3 +210,7 @@ func ZfsListDetails(r Runner, pool string) ([]*ZfsListEntry, error) {
210210

211211
return entries, nil
212212
}
213+
214+
func ZfsGetMountPrefix() string {
215+
return MOUNT_PREFIX
216+
}

0 commit comments

Comments
 (0)