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