From b108a7204f6d5ba2a4ff94bceedf26823c1532a4 Mon Sep 17 00:00:00 2001 From: Cameron Corda Date: Tue, 6 Feb 2024 09:43:54 -0800 Subject: [PATCH] mariadb not mysql in db import in docker refs Shell scripts to mysql not being found #185 --- _build/db.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/_build/db.sh b/_build/db.sh index d3a56f37..bc89a1dc 100644 --- a/_build/db.sh +++ b/_build/db.sh @@ -44,18 +44,18 @@ function db_import() { ext=${sql##*.} if [ $ext = "zip" ]; then - unzip -p $sql | docker exec -i $DB_CONTAINER mysql -u $WORDPRESS_DB_USER -p$WORDPRESS_DB_PASSWORD -D $WORDPRESS_DB_NAME + unzip -p $sql | docker exec -i $DB_CONTAINER mariadb -u $WORDPRESS_DB_USER -p$WORDPRESS_DB_PASSWORD -D $WORDPRESS_DB_NAME elif [ $ext = "gz" ]; then - gunzip < $sql | docker exec -i $DB_CONTAINER mysql -u $WORDPRESS_DB_USER -p$WORDPRESS_DB_PASSWORD -D $WORDPRESS_DB_NAME + gunzip < $sql | docker exec -i $DB_CONTAINER mariadb -u $WORDPRESS_DB_USER -p$WORDPRESS_DB_PASSWORD -D $WORDPRESS_DB_NAME else - docker exec -i $DB_CONTAINER mysql -u $WORDPRESS_DB_USER -p$WORDPRESS_DB_PASSWORD -D $WORDPRESS_DB_NAME < $sql + docker exec -i $DB_CONTAINER mariadb -u $WORDPRESS_DB_USER -p$WORDPRESS_DB_PASSWORD -D $WORDPRESS_DB_NAME < $sql fi # run local mods if present file="_data/local.sql" if [ -f "$file" ] then - docker exec -i $DB_CONTAINER mysql -u $WORDPRESS_DB_USER -p$WORDPRESS_DB_PASSWORD -D $WORDPRESS_DB_NAME < $file + docker exec -i $DB_CONTAINER mariadb -u $WORDPRESS_DB_USER -p$WORDPRESS_DB_PASSWORD -D $WORDPRESS_DB_NAME < $file echo "$file imported." else echo "$file not found."