Skip to content

Commit

Permalink
Use cfg file in initialisation
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-riggs committed Aug 20, 2024
1 parent b7ae0a0 commit 9f28104
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,8 @@ jobs:
cp "./conf/ws_config.example.cfg" "./conf/ws_config.cfg"
tar xfz "dist/ispyb-database.tar.gz"

mariadb-install-db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
mariadb-install-db --defaults-file=.my.cnf --user=mysql --basedir=/usr --datadir=/var/lib/mysql
/etc/init.d/mariadb start
mariadb --defaults-file=.my.cnf -e "CREATE DATABASE ispybtest"

printf 'Waiting for MySQL database to accept connections'
until mariadb --defaults-file=.my.cnf -e "SHOW DATABASES" >/dev/null; do printf '.'; sleep 10; done
Expand Down

0 comments on commit 9f28104

Please sign in to comment.