2021-08-11 14:26:09 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
2021-07-05 18:18:52 -04:00
|
|
|
set +u
|
|
|
|
|
|
2021-07-05 13:51:52 -04:00
|
|
|
if [[ -z "$DB_NAME" ]]; then
|
|
|
|
|
echo "DB_NAME not found"
|
|
|
|
|
print_usage_instruction
|
|
|
|
|
fi
|
|
|
|
|
if [[ -z "$DB_USER" ]]; then
|
|
|
|
|
echo "DB_USER not found"
|
|
|
|
|
print_usage_instruction
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
DB_HOST=${DB_HOST-localhost}
|
|
|
|
|
DB_PASS=${DB_PASSWORD-""}
|
2022-08-26 14:53:36 -04:00
|
|
|
WP_VERSION=${WP_VERSION-6}
|
2021-07-05 13:51:52 -04:00
|
|
|
PROJECT_ROOT_DIR=$(pwd)
|
|
|
|
|
WP_CORE_DIR=${WP_CORE_DIR:-local/public}
|
|
|
|
|
PLUGINS_DIR=${PLUGINS_DIR:-"$WP_CORE_DIR/wp-content/plugins"}
|
|
|
|
|
MUPLUGINS_DIR=${MUPLUGINS_DIR:-"$WP_CORE_DIR/wp-content/mu-plugins"}
|
|
|
|
|
THEMES_DIR=${THEMES_DIR:-"$WP_CORE_DIR/wp-content/themes"}
|
|
|
|
|
SKIP_DB_CREATE=${SKIP_DB_CREATE-false}
|