Skip to content
This repository was archived by the owner on Mar 5, 2019. It is now read-only.

Commit d5c71a2

Browse files
authored
fix: create database with system user
1 parent 1b70f57 commit d5c71a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/database.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ database_create ()
2929

3030
sudo -u postgres psql -c "CREATE USER $ARK_DB_USERNAME WITH PASSWORD '$ARK_DB_PASSWORD' CREATEDB;" | tee -a "$commander_log"
3131

32-
sudo -u postgres createdb "$ARK_DB_DATABASE" | tee -a "$commander_log"
32+
createdb "$ARK_DB_DATABASE" | tee -a "$commander_log"
3333

3434
sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE $ARK_DB_DATABASE TO $ARK_DB_USERNAME;" | tee -a "$commander_log"
3535

0 commit comments

Comments
 (0)