2023-10-19 13:07:26 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2023-10-19 16:23:44 +00:00
|
|
|
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`
|
2023-10-19 13:07:26 +00:00
|
|
|
keywordSearch=$1
|
|
|
|
keywordreplace=$2
|
|
|
|
|
|
|
|
php srdb.cli.php -h $WPDBPHOST -n $WPDBNAME -u $WPDBUSER -p "$WPDBPASS" -s "$keywordSearch" -r "$keywordreplace"
|