diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/wordpress.sh.erb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/templates/wordpress.sh.erb b/templates/wordpress.sh.erb index a6626c6..02b97e2 100644 --- a/templates/wordpress.sh.erb +++ b/templates/wordpress.sh.erb @@ -128,7 +128,11 @@ function wordpress_upgrade { # Usage function wordpress_usage { - echo "Usage: `basename $0` <deploy|upgrade> [arguments]" + /usr/local/share/wp-cli/src/bin/wp help + echo "" + echo "Installation management commands:" + echo " wp deploy <version>" + echo " wp upgrade <old-version> <new-version>" } # Main procedure @@ -143,7 +147,8 @@ elif [ "$1" == "upgrade" ]; then wordpress_upgrade $* elif [ "$1" == "help" ]; then wordpress_usage - /usr/local/share/wp-cli/src/bin/wp help +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 $* |