Browse Source

:bug: fix create db & user

Jeremy Zheng 3 years ago
parent
commit
49664fbe79
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scripts/spring/postgresql.sh

+ 1 - 1
scripts/spring/postgresql.sh

@@ -8,7 +8,7 @@ then
     exit 1
 fi
 
-psql -h 127.0.0.1 -U postgres << EOF
+psql << EOF
 CREATE DATABASE $1_mint WITH ENCODING = 'UTF8';
 CREATE USER $1 WITH PASSWORD '$2';
 GRANT ALL PRIVILEGES ON DATABASE $1_mint TO $1;