mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-29 17:30:33 +02:00
Update run
This commit is contained in:
@@ -16,8 +16,10 @@ chmod 775 /run/postgresql
|
|||||||
PGDATA="${PGDATA:-/config/postgres-data}"
|
PGDATA="${PGDATA:-/config/postgres-data}"
|
||||||
export PGDATA
|
export PGDATA
|
||||||
|
|
||||||
mkdir -p "${PGDATA}"
|
# Create and secure PGDATA
|
||||||
chown -R postgres:postgres "${PGDATA}"
|
mkdir -p "$PGDATA"
|
||||||
|
chown -R postgres:postgres "$PGDATA"
|
||||||
|
chmod 0700 "$PGDATA"
|
||||||
|
|
||||||
INITDB="$(command -v initdb || echo /usr/bin/initdb)"
|
INITDB="$(command -v initdb || echo /usr/bin/initdb)"
|
||||||
POSTGRES="$(command -v postgres || echo /usr/bin/postgres)"
|
POSTGRES="$(command -v postgres || echo /usr/bin/postgres)"
|
||||||
|
|||||||
Reference in New Issue
Block a user