Use full path to zm_create.sql in bootstrap-zm.sh

This commit is contained in:
Kyle Johnson 2014-06-27 14:13:29 -04:00
parent 78c9ed2a7f
commit 4cb0d7b1cd
1 changed files with 1 additions and 3 deletions

View File

@ -13,8 +13,6 @@ with_timestamps() {
bootstrap_zm() {
cd $TRAVIS_BUILD_DIR
if [ "$ZM_BUILDMETHOD" = "autotools" ]; then libtoolize --force; fi
if [ "$ZM_BUILDMETHOD" = "autotools" ]; then aclocal; fi
if [ "$ZM_BUILDMETHOD" = "autotools" ]; then autoheader; fi
@ -24,7 +22,7 @@ bootstrap_zm() {
mysql -uroot -e "CREATE DATABASE IF NOT EXISTS zm"
mysql -uroot -e "GRANT ALL ON zm.* TO 'zmuser'@'localhost' IDENTIFIED BY 'zmpass'";
mysql -uroot -e "FLUSH PRIVILEGES"
mysql -uzmuser -pzmpass < db/zm_create.sql
mysql -uzmuser -pzmpass < ${TRAVIS_BUILD_DIR}/db/zm_create.sql
}