acme-dns/test/pgsql.sh

5 lines
194 B
Bash
Raw Permalink Normal View History

#!/bin/sh
sudo -u postgres createdb acmedns
sudo -u postgres psql -c "CREATE USER acmedns WITH PASSWORD 'acmedns'"
sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE acmedns TO acmedns"