malert commit

This commit is contained in:
Jay Sharma
2023-07-28 06:49:53 +05:30
parent 5d0f0734d8
commit 8c2a392196
42 changed files with 2515 additions and 258 deletions

7
redinessprobe-wp.sh Normal file
View 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