Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Theme installation support #29

Merged
merged 3 commits into from Oct 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Expand Up @@ -137,6 +137,9 @@ custom:
- query-monitor
- https://github.com/crstauf/query-monitor-extend/archive/version/1.0.zip
- https://github.com/norcross/airplane-mode/archive/master.zip
install_themes: # Various way to install a theme
- understrap
- https://github.com/understrap/understrap-child.git
wpconfig_constants:
WP_DEBUG: true
WP_DEBUG_LOG: true
Expand Down
7 changes: 7 additions & 0 deletions provision/vvv-init.sh
Expand Up @@ -160,4 +160,11 @@ if [ ! -z "${WP_PLUGINS}" ]; then
done
fi

WP_THEMES=`get_config_value 'install_themes' ''`
if [ ! -z "${WP_THEMES}" ]; then
for theme in ${WP_THEMES//- /$'\n'}; do
noroot wp theme install "${theme}"
done
fi

echo "Site Template provisioner script completed"