diff --git a/postgres/rootfs/etc/cont-init.d/99-run.sh b/postgres/rootfs/etc/cont-init.d/99-run.sh index e0ff9b187..4dcb9ded1 100755 --- a/postgres/rootfs/etc/cont-init.d/99-run.sh +++ b/postgres/rootfs/etc/cont-init.d/99-run.sh @@ -4,6 +4,7 @@ # Use new config file CONFIG_HOME="$(bashio::config "CONFIG_LOCATION")" CONFIG_HOME="$(dirname "$CONFIG_HOME")" +mkdir -p "$CONFIG_HOME" if [ ! -f "$CONFIG_HOME"/postgresql.conf.sample ]; then # Copy default config.env if [ -f /usr/local/share/postgresql/postgresql.conf.sample ]; then