summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/wordpress.sh.erb9
1 files 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 <version>"
echo " wp upgrade <old-version> <new-version>"
+ 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 $*