1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2024-11-29 00:24:13 +01:00

again try to fix up the travis run for postfix

This commit is contained in:
Klas Lindfors 2014-08-27 08:31:55 +02:00
parent fc6f2ca033
commit d65494afc7

View File

@ -8,10 +8,12 @@ if [ "x$DB" = "xmysql" ]; then
mysql -u $dbuser -e 'create database ykval;'
mysql -u $dbuser ykval < ykval-db.sql
elif [ "x$DB" = "xpgsql" ]; then
sudo service postgresql status
set +e
sudo service postgresql status | grep -q 'online'
if [ $? != 0 ]; then
sudo service postgresql restart
fi
set -e
dbuser=postgres
psql -U $dbuser -c 'create database ykval;'