From a9f5d1bc65c1585fbfd75de2b1af137239f1ee7c Mon Sep 17 00:00:00 2001 From: Steven Day Date: Fri, 14 Aug 2015 11:51:10 +0100 Subject: [PATCH] Add a function to install-site to create a postgres utf8 template --- bin/install-site.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bin/install-site.sh b/bin/install-site.sh index 4ab86b4f..d3253d59 100755 --- a/bin/install-site.sh +++ b/bin/install-site.sh @@ -425,6 +425,16 @@ install_postgis() { fi } +# Create a postgres template called template_utf8 that uses UTF-8 encoding +create_postgres_template_utf8() { + echo "Creating template_utf8 database template... " + sudo -u postgres createdb -T template0 -E UTF-8 template_utf8 + sudo -u postgres psql <