27 lines
376 B
Bash
Executable File
27 lines
376 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# shellcheck disable=SC1091
|
|
|
|
set -o errexit
|
|
set -o nounset
|
|
set -o pipefail
|
|
# set -o xtrace
|
|
|
|
# Load libraries
|
|
. /libbitnami.sh
|
|
. /libmysql.sh
|
|
|
|
# Load MySQL environment variables
|
|
eval "$(mysql_env)"
|
|
|
|
print_welcome_page
|
|
|
|
if [[ "$*" = "/run.sh" ]]; then
|
|
info "** Starting MySQL setup **"
|
|
/setup.sh
|
|
info "** MySQL setup finished! **"
|
|
fi
|
|
|
|
echo ""
|
|
exec "$@"
|