summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2017-12-12 20:29:44 -0500
committerAnthony G. Basile <blueness@gentoo.org>2017-12-12 20:29:55 -0500
commit73ce9c10188ce4f5014c97ad4c0f8c9f69410113 (patch)
treeac0b7b2f7cb14a145e2308d705033f89cebc736d /plugins/jetpack/bin/partner-provision.sh
parentUpdate wordpress-mobile-pack 3.2 (diff)
downloadblogs-gentoo-73ce9c10188ce4f5014c97ad4c0f8c9f69410113.tar.gz
blogs-gentoo-73ce9c10188ce4f5014c97ad4c0f8c9f69410113.tar.bz2
blogs-gentoo-73ce9c10188ce4f5014c97ad4c0f8c9f69410113.zip
Update jetpack 5.6
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'plugins/jetpack/bin/partner-provision.sh')
-rwxr-xr-xplugins/jetpack/bin/partner-provision.sh16
1 files changed, 15 insertions, 1 deletions
diff --git a/plugins/jetpack/bin/partner-provision.sh b/plugins/jetpack/bin/partner-provision.sh
index 1436a33c..d2ec5afe 100755
--- a/plugins/jetpack/bin/partner-provision.sh
+++ b/plugins/jetpack/bin/partner-provision.sh
@@ -4,7 +4,7 @@
# executes wp-cli command to provision Jetpack site for given partner
usage () {
- echo "Usage: partner-provision.sh --partner_id=partner_id --partner_secret=partner_secret [--user=wp_user_id] [--plan=plan_name] [--onboarding=1] [--wpcom_user_id=1234] [--url=http://example.com] [--force_connect=1] [--force_register=1] [--allow-root]"
+ echo "Usage: partner-provision.sh --partner_id=partner_id --partner_secret=partner_secret [--user=wp_user_id] [--plan=plan_name] [--onboarding=1] [--wpcom_user_id=1234] [--url=http://example.com] [--force_connect=1] [--force_register=1] [--allow-root] [--home_url] [--site_url]"
}
GLOBAL_ARGS=""
@@ -38,6 +38,12 @@ for i in "$@"; do
--force_connect=* ) FORCE_CONNECT="${i#*=}"
shift
;;
+ --site_url=* ) WP_SITEURL="${i#*=}"
+ shift
+ ;;
+ --home_url=* ) WP_HOME="${i#*=}"
+ shift
+ ;;
--allow-root ) GLOBAL_ARGS="--allow-root"
shift
;;
@@ -100,6 +106,14 @@ if [ ! -z "$FORCE_CONNECT" ]; then
ADDITIONAL_ARGS="$ADDITIONAL_ARGS --force_connect=$FORCE_CONNECT"
fi
+if [ ! -z "$WP_SITEURL" ]; then
+ ADDITIONAL_ARGS="$ADDITIONAL_ARGS --site_url=$WP_SITEURL"
+fi
+
+if [ ! -z "$WP_HOME" ]; then
+ ADDITIONAL_ARGS="$ADDITIONAL_ARGS --home_url=$WP_HOME"
+fi
+
# Remove leading whitespace
ADDITIONAL_ARGS=$(echo "$ADDITIONAL_ARGS" | xargs echo)