Created
May 17, 2018 10:17
-
-
Save mattpwest/6b90ad0e2b3d1cb19140481d82f977a2 to your computer and use it in GitHub Desktop.
Bash alternative to Ansible PostgreSQL commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
createuser sonar; | |
echo "ALTER USER sonar WITH ENCRYPTED password '$1'; CREATE DATABASE sonar OWNER sonar; \q" | psql; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment