Last active
October 9, 2015 10:34
-
-
Save mnencia/fd788d74529eab3ad1c9 to your computer and use it in GitHub Desktop.
Easy recipe to install PostgreSQL on Debian/Ubuntu without creating a cluster (apt.postgresql.org repository packages)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# assumes apt.postgresql.org repository is already configured | |
TMP_PG_COMMON_CONF=$(mktemp -d) | |
echo create_main_cluster = false > "$TMP_PG_COMMON_CONF"/createcluster.conf | |
export PGSYSCONFDIR="$TMP_PG_COMMON_CONF" | |
apt-get install postgresql-12 | |
unset PGSYSCONFDIR | |
rm -fr "$TMP_PG_COMMON_CONF" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment