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."