Skip to content

Commit 414cc1e

Browse files
committed
chore: chmod +x shell scripts
1 parent ff39252 commit 414cc1e

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

create-multiple-postgresql-databases.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function create_user_and_database() {
99

1010
echo "Creating database '$database' with user '$user' and password '$password'"
1111
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "postgres" <<-EOSQL
12-
CREATE USER $user;
12+
CREATE USER $user IF NOT EXISTS;
1313
ALTER USER $user WITH ENCRYPTED PASSWORD '$password';
1414
CREATE DATABASE $database ENCODING "UTF8 LC_COLLATE = "en_US.UTF-8" LC_CTYPE = "en_US.UTF-8" TEMPLATE="template0";
1515
GRANT ALL PRIVILEGES ON DATABASE $database TO $user;

create-multiple-postgresql-full.sh

100644100755
File mode changed.

0 commit comments

Comments
 (0)