Commit 49c81908 authored by kapsner's avatar kapsner

added psql-command

parent 67ca71cf
......@@ -42,7 +42,7 @@ tablespace_%:
tablespaces: $(TB_TARGETS)
createdb:
test `$(PSQL_COMMAND) -d template1 -c "select exists (select datname from pg_database where datname = '$(PGDATABASE)')" -tA` \
test `$(PGSQL_BIN)psql -d template1 -c "select exists (select datname from pg_database where datname = '$(PGDATABASE)')" -tA` \
= 'f' || (echo -e "\e[31mERROR\e[m: Database $(PGDATABASE) already exists or connection error"; false)
$(PGSQL_BIN)createdb -T template0 -E 'UTF8' --lc-collate='en_US.UTF-8' $(PGDATABASE)
# $(PSQL_COMMAND) -d template1 -c "CREATE DATABASE $(PGDATABASE) TEMPLATE template0 \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment