Update basic_search_replace.sh

main
jay 2023-10-19 16:23:44 +00:00
parent a67619298b
commit 0bc15526f6
1 changed files with 4 additions and 4 deletions

View File

@ -1,9 +1,9 @@
#!/bin/bash #!/bin/bash
WPDBPHOST=cat wp-config.php | grep DB_HOST | cut -d \' -f 4 WPDBPHOST=`cat ../ROOT/wp-config.php | grep DB_HOST | cut -d \' -f 4`
WPDBNAME=cat wp-config.php | grep DB_NAME | cut -d \' -f 4 WPDBNAME=`cat ../ROOT/wp-config.php | grep DB_NAME | cut -d \' -f 4`
WPDBUSER=cat wp-config.php | grep DB_USER | cut -d \' -f 4 WPDBUSER=`cat ../ROOT/wp-config.php | grep DB_USER | cut -d \' -f 4`
WPDBPASS=cat wp-config.php | grep DB_PASSWORD | cut -d \' -f 4 WPDBPASS=`cat ../ROOT/wp-config.php | grep DB_PASSWORD | cut -d \' -f 4`
keywordSearch=$1 keywordSearch=$1
keywordreplace=$2 keywordreplace=$2