diff --git a/postgresql/nomad/postgresql.hcl b/postgresql/nomad/postgresql.hcl index f266fb7..54052e5 100755 --- a/postgresql/nomad/postgresql.hcl +++ b/postgresql/nomad/postgresql.hcl @@ -89,7 +89,7 @@ variable "database" { // LOCALS locals { - data_path = var.data == "" ? "${NOMAD_ALLOC_DIR}/data" : "/var/lib/postgresql" + data_path = var.data == "" ? "${NOMAD_ALLOC_DIR}/data" : "/var/lib/postgresql/data" } ///////////////////////////////////////////////////////////////////////////////