Skip to content

Commit 9720f24

Browse files
committed
3.3.0pre
1 parent 0be1d15 commit 9720f24

2 files changed

Lines changed: 15 additions & 9 deletions

File tree

rootfs/container/init/init.d/10-postgres

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ prepare_service 10-postgres
88
SERVICE_NAME="postgres"
99
output_off
1010

11-
bootstrap_filesystem
12-
initialize_cluster
13-
configure_server
14-
control_server start
15-
create_databases
16-
configure_replication
17-
configure_monitoring
18-
control_server stop
11+
postgres_bootstrap_filesystem
12+
postgres_initialize_cluster
13+
postgres_configure_server
14+
postgres_control_server start
15+
postgres_create_databases
16+
postgres_configure_replication
17+
postgres_configure_monitoring
18+
postgres_control_server stop
1919
liftoff

rootfs/container/run/available/10-postgres/run

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,14 @@ case "${LOG_TYPE,,}" in
1212
file ) hide_output=silent ;;
1313
esac
1414

15+
if [ "${SETUP_MODE,,}" = "auto" ] ; then
16+
local engine_config="/etc/postgres/container.conf"
17+
else
18+
local engine_config="${CONFIG_PATH%/}/${CONFIG_FILE}"
19+
fi
20+
1521
liftoff
1622

1723
print_start "Starting PostgreSQL $(psql --version | head -n 1 | awk '{print $NF}')"
1824
TZ="${TIMEZONE}" ${hide_output} exec s6-setuidgid postgres postgres \
19-
--config_file="${CONFIG_PATH%/}"/"${CONFIG_FILE}" ${SERVER_ARGS}
25+
--config_file="${engine_config}" ${POSTGRES_ARGS}

0 commit comments

Comments
 (0)