19 lines
485 B
Bash
Executable File
19 lines
485 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# shellcheck disable=SC1091
|
|
|
|
# Load libraries
|
|
. /libfs.sh
|
|
. /libmysql.sh
|
|
|
|
# Load MySQL environment variables
|
|
eval "$(mysql_env)"
|
|
|
|
for dir in "$DB_TMP_DIR" "$DB_LOG_DIR" "$DB_CONF_DIR" "${DB_CONF_DIR}/bitnami" "$DB_VOLUME_DIR" "$DB_DATA_DIR"; do
|
|
ensure_dir_exists "$dir"
|
|
done
|
|
chmod -R g+rwX "$DB_TMP_DIR" "$DB_LOG_DIR" "$DB_CONF_DIR" "${DB_CONF_DIR}/bitnami" "$DB_VOLUME_DIR" "$DB_DATA_DIR"
|
|
|
|
# Redirect all logging to stdout
|
|
ln -sf /dev/stdout "$DB_LOG_DIR/mysqld.log"
|