Skip to content

Instantly share code, notes, and snippets.

@ourskycode

ourskycode/init_pgsql.sh Secret

Created Nov 27, 2017
Embed
What would you like to do?
Discourse initialize PgSQL
kubectl exec **pgsql** -- su postgres -c 'psql template1 -c "create extension if not exists hstore;"'
kubectl exec **pgsql** -- su postgres -c 'psql template1 -c "create extension if not exists pg_trgm;"'
kubectl exec **pgsql** -- su postgres -c 'psql **discourse** -c "create extension if not exists hstore;"'
kubectl exec **pgsql** -- su postgres -c 'psql **discourse** -c "create extension if not exists pg_trgm;"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment