Created
March 28, 2019 02:34
-
-
Save Arvoreen/dec1cae37d93342ae6302d487b43ae93 to your computer and use it in GitHub Desktop.
Site specific clean up script. Assumes alias already configured in wp-cli
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
wp @azurenight search-replace 'https://www.azurenight.com' 'https://backup.azurenight.com' | |
sed -i 's/\/var\/www\/html/\/var\/www\/localhost\/htdocs/' /var/www/localhost/htdocs/azurenight/.htaccess | |
perl -p -i -e 'print "define('"'"'JETPACK_STAGING_MODE'"'"',true);\n" if /^.*Happy blogging.*$/' /var/www/localhost/htdocs/azurenight/wp-config.php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment