fixes mapsdemo outdated api key
authorChris Koeritz <fred@gruntose.com>
Sun, 7 Jan 2018 21:39:05 +0000 (16:39 -0500)
committerChris Koeritz <fred@gruntose.com>
Wed, 10 Jan 2018 20:01:12 +0000 (15:01 -0500)
scripts/site_avenger/revamp_cakelampvm.sh

index e1c268b60d98d670f11fe2bfa3d708c8c2d482ff..180574eb3f9cd35f12f44cbb19be2ac8b4301006 100644 (file)
@@ -319,6 +319,22 @@ FEISTY_MEOW_APEX=${FEISTY_MEOW_APEX}
 Added boot-time ramdisk swap partition to crontab for root."
 fi
 
+##############
+
+sep
+
+# repair the google config key for mapsdemo, which lives over in fred's account.
+search_replace \
+  "^[[:blank:]]*'key'[[:blank:]]*=>[[:blank:]]*'AIzaSyCd2kfOBf8tyd-_m2aM_ayMoAq8r_M1yUk'," \
+  "\t'key' => 'AIzaSyCvKs62XudEWPZpA21rCGI1Dkh6UxSQzzQ'," \
+  ~fred/apps/mapsdemo/avenger5/config/config_google.php
+
+if [ $? -ne 0 ]; then
+  echo Google config key for mapsdemo in fred account seems to already be patched.
+else
+  echo Patched the google config key for mapsdemo app in fred account.
+fi
+
 ##############
 ##############