summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-02-07 14:20:07 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-02-07 14:20:07 -0200
commit08bd269121b2dd5f42d4ffd84aa872362018c186 (patch)
treeb1fb23026bbd83b6e67aefcd85be7e68945ca2ae
parent5c828255c93e4cfec80310b0fb85df7e575ace2e (diff)
downloadpuppet-wordpress-08bd269121b2dd5f42d4ffd84aa872362018c186.tar.gz
puppet-wordpress-08bd269121b2dd5f42d4ffd84aa872362018c186.tar.bz2
Allowing core commands
-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 $*