acme-dns/test/pgsql.sh
2016-11-23 22:12:42 +02:00

5 lines
194 B
Bash
Executable File

#!/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"