From 08bd269121b2dd5f42d4ffd84aa872362018c186 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 7 Feb 2013 14:20:07 -0200 Subject: Allowing core commands --- templates/wordpress.sh.erb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/templates/wordpress.sh.erb b/templates/wordpress.sh.erb index 5d11a41..532f786 100644 --- a/templates/wordpress.sh.erb +++ b/templates/wordpress.sh.erb @@ -124,15 +124,18 @@ function wordpress_upgrade { echo "Audit: `du -hs wordpress-$old`" echo "Audit: `du -hs wordpress-$new`" echo "Check procedure and remove wordpress-$old once you make sure that everything is fine." + echo "Then run 'wordpress core update-db'" } # Usage function wordpress_usage { - /usr/local/share/wp-cli/bin/wp help echo "" echo "Installation management commands:" echo " wp deploy " echo " wp upgrade " + echo "" + echo -n "Wordpress CLI " + /usr/local/share/wp-cli/bin/wp help } # Main procedure @@ -147,8 +150,8 @@ elif [ "$1" == "upgrade" ]; then wordpress_upgrade $* elif [ "$1" == "help" ]; then wordpress_usage -elif [ "$1" == "core" ]; then - echo "Please use deploy or upgrade instead." +#elif [ "$1" == "core" ]; then +# echo "Please use deploy or upgrade instead." else # Send all other requests to wp-cli #/usr/local/share/wp-cli/src/bin/wp --path=$BASE/wordpress $* -- cgit v1.2.3