Skip to content

Commit 6704bbd

Browse files
committed
ref(database): update postgres user uid/gid in confd templates
1 parent 41de8fe commit 6704bbd

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

database/bin/boot

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ if [[ ! -d /var/lib/postgresql/9.3/main ]]; then
2020
mkdir -p /var/lib/postgresql/9.3
2121
chown -R postgres:postgres /var/lib/postgresql
2222
sudo -u postgres /usr/lib/postgresql/9.3/bin/initdb -D /var/lib/postgresql/9.3/main
23+
else
24+
chown -R postgres:postgres /var/lib/postgresql
2325
fi
2426

2527
# wait for etcd to be available

database/conf.d/pg_hba.conf.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[template]
22
src = "pg_hba.conf"
33
dest = "/etc/postgresql/9.3/main/pg_hba.conf"
4-
uid = 101
5-
gid = 104
4+
uid = 102
5+
gid = 106
66
mode = "0640"
77
keys = [
88
"/deis/database",

database/conf.d/postgresql.conf.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[template]
22
src = "postgresql.conf"
33
dest = "/etc/postgresql/9.3/main/postgresql.conf"
4-
uid = 101
5-
gid = 104
4+
uid = 102
5+
gid = 106
66
mode = "0644"
77
keys = [
88
"/deis/database",

0 commit comments

Comments
 (0)