From 60ac7657d1a0246a42f6c52557d3324e55f36be5 Mon Sep 17 00:00:00 2001 From: Alexander Overvoorde Date: Fri, 3 Sep 2021 12:51:45 +0200 Subject: [PATCH] Don't clutter output of usage instructions --- run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run.sh b/run.sh index f09d913..2fc0aa0 100755 --- a/run.sh +++ b/run.sh @@ -1,7 +1,5 @@ #!/bin/bash -set -x - function createPostgresConfig() { cp /etc/postgresql/12/main/postgresql.custom.conf.tmpl /etc/postgresql/12/main/conf.d/postgresql.custom.conf sudo -u postgres echo "autovacuum = $AUTOVACUUM" >> /etc/postgresql/12/main/conf.d/postgresql.custom.conf @@ -23,6 +21,8 @@ if [ "$#" -ne 1 ]; then exit 1 fi +set -x + if [ "$1" = "import" ]; then # Ensure that database directory is in right state chown postgres:postgres -R /var/lib/postgresql