Skip to content

Commit

Permalink
Update wp cli (#23)
Browse files Browse the repository at this point in the history
* Ensures wp-cli is updated to latest version

* stop wp-cli sending email at end of WP installation (which fails because no MTA is installed)
  • Loading branch information
anugupta authored Nov 25, 2016
1 parent d0ea59f commit 006a071
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions wp/install-wp.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env bash


if $install_wordpress ; then

echo "**** installing WP $wp_version"
Expand Down Expand Up @@ -39,7 +38,8 @@ PHP
--admin_user=$wp_admin_user \
--admin_password=$wp_admin_password \
--admin_email=$wp_admin_email \
--title="$wp_site_title"
--title="$wp_site_title" \
--skip-email


fi
10 changes: 4 additions & 6 deletions wp/wp-cli.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
#!/usr/bin/env bash


if [ ! -f /usr/local/bin/wp ]; then
echo "**** installing wp-cli"
curl https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli-nightly.phar -o /tmp/wp-cli.phar
chmod +x /tmp/wp-cli.phar
sudo mv /tmp/wp-cli.phar /usr/local/bin/wp
# update wp-cli
if [ -f /usr/local/bin/wp ]; then
echo "**** updating wp-cli"
sudo wp cli update --allow-root --yes
fi

wpcli_defaults_folder='/home/vagrant/.wp-cli'
Expand Down

0 comments on commit 006a071

Please sign in to comment.