From 662ce85cb8b84ccb8f63a9160c366c864968817d Mon Sep 17 00:00:00 2001 From: Grzegorz Adam Kowalski Date: Sat, 16 Mar 2019 23:35:15 +0100 Subject: [PATCH] turn off autovacuum; fix psql errors --- run.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/run.sh b/run.sh index 701d33e..5039751 100755 --- a/run.sh +++ b/run.sh @@ -12,11 +12,8 @@ fi 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;"