From cacb6b330645351e73dba2517f603f15afe9d354 Mon Sep 17 00:00:00 2001 From: Jay Sharma Date: Fri, 18 Aug 2023 01:34:52 +0530 Subject: [PATCH] Docker status modification --- redinessprobe-wp.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/redinessprobe-wp.sh b/redinessprobe-wp.sh index 19d8f04c..7a946f84 100644 --- a/redinessprobe-wp.sh +++ b/redinessprobe-wp.sh @@ -1,7 +1,8 @@ #!/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 +export WP_FILE="/usr/share/nginx/subdomain/www/wp-config.php" +sed -i '/^define.*NONCE_SALT.*/a define(\'\'WP_SITEURL\'', '\'http://localhost/\'');' $WP_FILE || exit +sed -i '/^define.*NONCE_SALT.*/a define(\'\'WP_HOME\'', '\'http://localhost/\'');' $WP_FILE || exit +wget --spider localhost && wget --spider localhost/wp-login.php || exit +sed -i '/http\:\/\/localhost/d' $WP_FILE || exit