From 6b98fa5af1e570daf68d5b26e7b8ab0788ffc213 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Sun, 7 Jan 2018 16:39:05 -0500 Subject: [PATCH] fixes mapsdemo outdated api key --- scripts/site_avenger/revamp_cakelampvm.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/scripts/site_avenger/revamp_cakelampvm.sh b/scripts/site_avenger/revamp_cakelampvm.sh index e1c268b6..180574eb 100644 --- a/scripts/site_avenger/revamp_cakelampvm.sh +++ b/scripts/site_avenger/revamp_cakelampvm.sh @@ -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 + ############## ############## -- 2.34.1