icingaweb2/test/travis_database.sh

12 lines
307 B
Bash
Raw Normal View History

2017-02-08 15:59:12 +01:00
#!/bin/bash
set -ex
mysql -u root -e "GRANT ALL ON *.* TO icinga_unittest@localhost IDENTIFIED BY 'icinga_unittest'"
export PGHOST=localhost
export PGUSER=postgres
psql -c "CREATE USER icinga_unittest WITH PASSWORD 'icinga_unittest'"
psql -c "CREATE DATABASE icinga_unittest WITH OWNER icinga_unittest"