#!/usr/bin/env bash

# Exit when any command fails
set -e

# Run the original install script
bin/install "$@"

# Move our MU-Plugins to a different directory
mv wp-content/mu-plugins wp-content/client-mu-plugins
# Clone the VIP MU-Plugins
git clone git@github.com:Automattic/vip-go-mu-plugins-built.git wp-content/mu-plugins
mkdir -p wp-content/vip-config
touch wp-content/vip-config/vip-config.php

mkdir -p wp-content/private
touch wp-content/private/.gitkeep

# TODO: There's more to do here I _think_.
