Update basic_search_replace.sh
parent
a67619298b
commit
0bc15526f6
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue