gh-ost/localtests/mysql-env.sh
2022-12-04 02:04:10 +01:00

16 lines
333 B
Bash
Executable File

#!/bin/bash
DIR=$(readlink -f $(dirname $0))
FILE=$DIR/mysql.env
(
echo "GITHUB_ACTION=${GITHUB_ACTION}"
echo 'MYSQL_ALLOW_EMPTY_PASSWORD=true'
echo "TEST_STORAGE_ENGINE=${TEST_STORAGE_ENGINE}"
if [ "$TEST_STORAGE_ENGINE" == "rocksdb" ]; then
echo 'INIT_ROCKSDB=true'
fi
) | tee $FILE
echo "Wrote env file to $FILE"