From: Chris Koeritz Date: Sun, 7 Jan 2018 21:39:05 +0000 (-0500) Subject: fixes mapsdemo outdated api key X-Git-Tag: 2.140.108~3 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=6b98fa5af1e570daf68d5b26e7b8ab0788ffc213;p=feisty_meow.git fixes mapsdemo outdated api key --- 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 + ############## ##############