Files

23 lines
572 B
Bash
Raw Permalink Normal View History

#!/usr/bin/env bash
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-""}
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}