From fa40c32f3844458a9074497a3a085829019403da Mon Sep 17 00:00:00 2001 From: Shiwei Wang Date: Wed, 14 Mar 2018 00:19:43 -0500 Subject: [PATCH] persist postgresql (#2122) persist postgresql --- postgresql.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/postgresql.json b/postgresql.json index 3f586c2c54..0cadcea920 100644 --- a/postgresql.json +++ b/postgresql.json @@ -20,6 +20,14 @@ "pgAdmin 4" ] ], + "persist": "data", + "env_set": { + "PGDATA": "$dir\\data" + }, + "post_install": " + if (!(Test-Path \"$dir\\data\\pg_hba.conf\")) { iex \"initdb --encoding=UTF8 --locale=en\" } + ", + "notes": "To start/stop service, run `pg_ctl start`, `pg_ctl stop`.", "checkver": { "url": "https://www.enterprisedb.com/products-services-training/pgbindownload", "re": "Version ([\\d.]+)"