malert commit
This commit is contained in:
7
redinessprobe-wp.sh
Normal file
7
redinessprobe-wp.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
sed -i '/^define.*NONCE_SALT.*/a define(\'\'WP_SITEURL\'', '\'http://localhost/\'');' /usr/share/nginx/html/wp-config.php || exit
|
||||
sed -i '/^define.*NONCE_SALT.*/a define(\'\'WP_HOME\'', '\'http://localhost/\'');' /usr/share/nginx/html/wp-config.php || exit
|
||||
wget -q --spider localhost && wget -q --spider localhost/wp-login.php || exit
|
||||
sed -i '/http\:\/\/localhost/d' /usr/share/nginx/html/wp-config.php || exit
|
||||
|
||||
|
||||
Reference in New Issue
Block a user