Skip to content

Commit

Permalink
Only add user on db create
Browse files Browse the repository at this point in the history
  • Loading branch information
alanpeabody committed Mar 19, 2014
1 parent e472f87 commit 0e0f46f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/postgresql.sh
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@ if [ ! -d '/usr/local/pgsql/data' ]; then

# Setup hstor
su - postgres -l -c 'psql -d template1 -c "create extension hstore;"'
fi

# Create vagrant user
su - postgres -l -c 'createuser vagrant -s'
# Create vagrant user
su - postgres -l -c 'createuser vagrant -s'
fi

0 comments on commit 0e0f46f

Please sign in to comment.