~mna/hockeygo

7f76fb20b0df0e9ad08147b3a81cb64c3da6a676 — Martin Angers 2 years ago 4488f13
make it work on linux
2 files changed, 3 insertions(+), 1 deletions(-)

M docker-compose.yml
M scripts/migrate.sh
M docker-compose.yml => docker-compose.yml +2 -0
@@ 14,6 14,8 @@ services:
    volumes:
      - ./db/config/mysql:/etc/mysql/conf.d:ro
      - ./db/data/mysql:/var/lib/mysql
    security_opt:
      - label:disable
    secrets:
      - root_pwd
      - user_pwd

M scripts/migrate.sh => scripts/migrate.sh +1 -1
@@ 25,7 25,7 @@ function run {
      --execute "DROP DATABASE IF EXISTS ${dbname}; CREATE DATABASE ${dbname};"
  fi

  find -s "./db/migrations" -name "*.sql" -print0 | while read -rd $'\0' file
  find "./db/migrations" -name "*.sql" -print0 | sort -z | while read -rd $'\0' file
  do
    echo "${file}"
    mysql --user="${user}" \