From 22c969c88c466c975636c8870d801322221bb81b Mon Sep 17 00:00:00 2001 From: Sameer Naik Date: Sat, 28 Nov 2015 14:50:34 +0530 Subject: [PATCH] removed launch sequence from functions import --- entrypoint.sh | 1 - runtime/functions | 35 ----------------------------------- 2 files changed, 36 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index f9fff9f..79a97d2 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -14,7 +14,6 @@ fi # default behaviour is to launch postgres if [[ -z ${1} ]]; then map_uidgid - locale_gen create_datadir create_certdir diff --git a/runtime/functions b/runtime/functions index 8d2d08f..41d9177 100755 --- a/runtime/functions +++ b/runtime/functions @@ -338,38 +338,3 @@ configure_recovery() { set_recovery_param "sslmode" "${REPLICATION_SSLMODE}" fi } - -# allow arguments to be passed to postgers -if [[ ${1:0:1} = '-' ]]; then - EXTRA_ARGS="$@" - set -- -elif [[ ${1} == mongod || ${1} == $(which mongod) ]]; then - EXTRA_ARGS="${@:2}" - set -- -fi - -# default behaviour is to launch postgres -if [[ -z ${1} ]]; then - map_uidgid - - create_datadir - create_certdir - create_logdir - create_rundir - - initialize_database - configure_ssl - trust_localnet - - create_user - create_database - create_replication_user - configure_recovery - - echo "Starting PostgreSQL ${PG_VERSION}..." - exec start-stop-daemon --start --chuid ${PG_USER}:${PG_USER} \ - --exec ${PG_BINDIR}/postgres -- -D ${PG_DATADIR} ${EXTRA_ARGS} -else - exec "$@" -fi -