From 0bc15526f693107c03174154d6278f77e44ab245 Mon Sep 17 00:00:00 2001 From: jay Date: Thu, 19 Oct 2023 16:23:44 +0000 Subject: [PATCH] Update basic_search_replace.sh --- basic_search_replace.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/basic_search_replace.sh b/basic_search_replace.sh index 6570e5f..a38b898 100644 --- a/basic_search_replace.sh +++ b/basic_search_replace.sh @@ -1,9 +1,9 @@ #!/bin/bash -WPDBPHOST=cat wp-config.php | grep DB_HOST | cut -d \' -f 4 -WPDBNAME=cat wp-config.php | grep DB_NAME | cut -d \' -f 4 -WPDBUSER=cat wp-config.php | grep DB_USER | cut -d \' -f 4 -WPDBPASS=cat wp-config.php | grep DB_PASSWORD | cut -d \' -f 4 +WPDBPHOST=`cat ../ROOT/wp-config.php | grep DB_HOST | cut -d \' -f 4` +WPDBNAME=`cat ../ROOT/wp-config.php | grep DB_NAME | cut -d \' -f 4` +WPDBUSER=`cat ../ROOT/wp-config.php | grep DB_USER | cut -d \' -f 4` +WPDBPASS=`cat ../ROOT/wp-config.php | grep DB_PASSWORD | cut -d \' -f 4` keywordSearch=$1 keywordreplace=$2