azerothcore-wotlk/apps/ci/ci-import-db.sh
Rochet2 1397971943
feat(CI): migrate from Travis to GitHub Actions (#2887)
Co-authored-by: Yehonal <yehonal.azeroth@gmail.com>
2020-04-19 17:33:13 +02:00

14 lines
394 B
Bash
Executable file

#!/bin/bash
set -e
sudo systemctl start mysql
./acore.sh "db-assembler" "import-all"
if [ -s modules/mod-premium/sql/example_item_9017.sql ]
then
echo "Import custom module item..."
# if the premium module is available insert the example item or else the worldserver dry run will fail
mysql -uroot -proot acore_world < modules/mod-premium/sql/example_item_9017.sql
echo "Done!"
fi