diff --git a/misc/docker/load-uta.sh b/misc/docker/load-uta.sh index 3c9105b..dd6f2bf 100755 --- a/misc/docker/load-uta.sh +++ b/misc/docker/load-uta.sh @@ -9,7 +9,7 @@ # Overwrite pg_hba.conf, including whatever edits might have been made # by the postgres image -cat <"$PGDATA/pg_hba.conf" +cat <"$PGDATA/pg_hba.conf" # allow the anonymous user to access uta without password # These lines must occur before more stringent authentication methods host all anonymous 0.0.0.0/0 trust @@ -50,7 +50,7 @@ gzip -cdq < "${UTA_PGD_FN}" \ gzip -cdq < "${UTA_PGD_FN}" \ | perl -n \ - -e 'm/CREATE SCHEMA (uta_\d+)/ && print("ALTER DATABASE :DBNAME SET search_path=$1;\n");' \ + -e 'm/CREATE SCHEMA (uta_[\d\w]+)/ && print("ALTER DATABASE :DBNAME SET search_path=$1;\n");' \ -e 'print if s/CREATE MATERIALIZED VIEW (.\S+) AS/REFRESH MATERIALIZED VIEW $1;/' \ | psql -1e -U uta_admin -d uta -v ON_ERROR_STOP=1 @@ -58,16 +58,16 @@ gzip -cdq < "${UTA_PGD_FN}" \ cat < -U anonymous -d uta -== +== == No password is required. -== +== ======================================================================= =======================================================================