You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

6 lines
347 B

  1. #!/bin/bash
  2. REMOTE_DOMAIN=site-wordpress.cap.wpstudio.ru
  3. LOCAL_DOMAIN=site-wordpress.local.wpstudio.ru
  4. wp search-replace "https://${REMOTE_DOMAIN}" "http://${LOCAL_DOMAIN}" wp_options wp_posts wp_postmeta --report-changed-only=true
  5. wp search-replace "${REMOTE_DOMAIN}" "${LOCAL_DOMAIN}" wp_options wp_posts wp_postmeta --report-changed-only=true