Skip to content

Commit

Permalink
Add 2 helpers for adding extension more easily
Browse files Browse the repository at this point in the history
  • Loading branch information
mscherer committed Feb 12, 2021
1 parent 74322a1 commit 2069aac
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/root/usr/bin/create_extension
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
EXT=$1
mkdir -p ~/postgresql-init
echo "echo 'CREATE EXTENSION IF NOT EXISTS ${EXT};' | psql" > ~/postgresql-init/enable_${EXT}.sh

4 changes: 4 additions & 0 deletions src/root/usr/bin/load_pg_library
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
LIB=$1
mkdir -p ~/postgresql-cfg
echo "shared_preload_libraries='${LIB}'" > ~/postgresql-cfg/${LIB}.conf

0 comments on commit 2069aac

Please sign in to comment.