From 42b5783486ed1de2607f80955e768c511fcdaaf7 Mon Sep 17 00:00:00 2001 From: Grzegorz Adam Kowalski Date: Sun, 17 Mar 2019 01:01:52 +0100 Subject: [PATCH] revert changes --- run.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/run.sh b/run.sh index 5039751..97e2dbe 100755 --- a/run.sh +++ b/run.sh @@ -14,6 +14,10 @@ if [ "$1" = "import" ]; then # Initialize PostgreSQL sudo -u postgres echo "autovacuum = off" >> /etc/postgresql/10/main/postgresql.custom.conf service postgresql start + sudo -u postgres createuser renderer + sudo -u postgres createdb -E UTF8 -O renderer gis + sudo -u postgres psql -d gis -c "CREATE EXTENSION postgis;" + sudo -u postgres psql -d gis -c "CREATE EXTENSION hstore;" sudo -u postgres psql -d gis -c "ALTER TABLE geometry_columns OWNER TO renderer;" sudo -u postgres psql -d gis -c "ALTER TABLE spatial_ref_sys OWNER TO renderer;"