implemented multisite

This commit is contained in:
2024-01-13 15:31:50 -06:00
parent 5cee959904
commit 39dc7800d9
29 changed files with 348724 additions and 200 deletions

17
network/wp-plugin-install.sh Executable file
View File

@@ -0,0 +1,17 @@
WP_PLUGINS="sportspress sportspress-for-baseball wordpress-importer"
WP_PLUGINS+=" akismet jetpack pretty-link printful-shipping-for-woocommerce seriously-simple-podcasting woocommerce woocommerce-services"
if [ "$#" -lt 1 ]; then
echo "Error: COMPOSE_FILE argument is missing."
echo "Usage: $0 COMPOSE_FILE"
exit 1
fi
COMPOSE_FILE="$1"
SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
ENV_FILE=$SCRIPTPATH/.env
# this env file is not being read and i don't know why.
# it's actually being loaded from compose.yml
docker compose -f $COMPOSE_FILE run --env WP_PLUGINS="$WP_PLUGINS" --rm -it wp-cli sh -c \
'wp plugin install $WP_PLUGINS --activate --force'