diff --git a/src/root/usr/bin/create_extension b/src/root/usr/bin/create_extension new file mode 100644 index 00000000..7ea43e3f --- /dev/null +++ b/src/root/usr/bin/create_extension @@ -0,0 +1,5 @@ +#!/bin/sh +EXT=$1 +mkdir -p ~/postgresql-start +echo "psql -c 'CREATE EXTENSION IF NOT EXISTS ${EXT};' \$POSTGRESQL_DATABASE" > ~/postgresql-start/enable_${EXT}.sh + diff --git a/src/root/usr/bin/load_pg_library b/src/root/usr/bin/load_pg_library new file mode 100644 index 00000000..8ffe3bb8 --- /dev/null +++ b/src/root/usr/bin/load_pg_library @@ -0,0 +1,4 @@ +#!/bin/sh +LIB=$1 +mkdir -p ~/postgresql-cfg +echo "shared_preload_libraries='${LIB}'" > ~/postgresql-cfg/${LIB}.conf