1 #!/bin/sh 2 # Copyright 2016 The Chromium Authors. All rights reserved. 3 # Use of this source code is governed by a BSD-style license that can be 4 # found in the LICENSE file. 5 # 6 # Script to SSH into a list of bots and set up their keychains for Telemetry. 7 # https://www.chromium.org/developers/telemetry/telemetry-mac-keychain-setup 8 9 for hostname in "$@" 10 do 11 ssh -t "$hostname" 'security unlock-keychain login.keychain 12 security delete-generic-password -s "Chrome Safe Storage" login.keychain 13 security add-generic-password -a Chrome -w "+NTclOvR4wLMgRlLIL9bHQ==" \ 14 -s "Chrome Safe Storage" -A login.keychain' 15 done 16