Files
AstoriaCore-AC/apps/ci/ci-import-db.sh
RealLushen 0b667508e4 Release
2021-01-01 21:48:02 +01:00

15 lines
394 B
Bash

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