Skip to content

Instantly share code, notes, and snippets.

@lucas-pelton
Last active June 29, 2017 23:14
Show Gist options
  • Save lucas-pelton/764e811104c1c4f19ed0a1d79fbcd19b to your computer and use it in GitHub Desktop.
Save lucas-pelton/764e811104c1c4f19ed0a1d79fbcd19b to your computer and use it in GitHub Desktop.
Search and replace for Wordfence WAF after CloudWays site clone
find . -type f -name "wordfence-waf.php" -exec sed -i 's/[0-9\-]*.cloudwaysapps.com/NEW.cloudwaysapps.com/g' {} +
find . -type f -name ".user.ini" -exec sed -i 's/[0-9\-]*.cloudwaysapps.com/NEW.cloudwaysapps.com/g' {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment