[autotest] Make autotest setup script put readonly_* into shadow_config.ini

Turns out that, when contacting the TKO database, some code
in autotest uses the readonly_* fields in the config, if present.
Since we set these in global_config.ini, we need to clobber them
in shadow_config.ini when running a local setup.

BUG=None
TEST=manual

Change-Id: I35ff26452fc9d979dc9bdb6a86b7e9cb8beb5909
Reviewed-on: https://gerrit.chromium.org/gerrit/13968
Tested-by: Chris Masone <cmasone@chromium.org>
Reviewed-by: Scott Zawalski <scottz@chromium.org>
Commit-Ready: Chris Masone <cmasone@chromium.org>
diff --git a/site_utils/setup_dev_autotest.sh b/site_utils/setup_dev_autotest.sh
index 3fe638b..e88e200 100755
--- a/site_utils/setup_dev_autotest.sh
+++ b/site_utils/setup_dev_autotest.sh
@@ -85,6 +85,9 @@
 [AUTOTEST_WEB]
 host: localhost
 password: ${PASSWD}
+readonly_host: localhost
+readonly_user: chromeosqa-admin
+readonly_password: ${PASSWD}
 
 [SERVER]
 hostname: localhost
@@ -106,7 +109,7 @@
 echo -n "Setting up Database: chromeos_autotest_db in MySQL..."
 SQL_COMMAND="create database chromeos_autotest_db; \
 grant all privileges on chromeos_autotest_db.* TO \
-'chromeosqa-admin'@'localhost' identified by '${PASSWD}'; \
+'chromeosqa-admin'@'%' identified by '${PASSWD}'; \
 FLUSH PRIVILEGES;"
 
 if mysql -u root -e ';' 2> /dev/null ; then