Fix testnet deployment

This commit is contained in:
Michael Vines
2019-08-15 08:32:10 -07:00
parent 4688f9821f
commit 1363841f32
3 changed files with 8 additions and 5 deletions

View File

@ -6,13 +6,14 @@ set -ex
[[ -d /home/solana/.ssh ]] || exit 1
cd "$(dirname "$0")"
# shellcheck source=net/scripts/solana-user-authorized_keys.sh
source solana-user-authorized_keys.sh
if [[ -z $SOLANA_PUBKEYS ]]; then
echo "Warning: source solana-user-authorized_keys.sh first"
fi
# solana-user-authorized_keys.sh defines the public keys for users that should
# automatically be granted access to ALL testnets.
# automatically be granted access to ALL testnets
for key in "${SOLANA_PUBKEYS[@]}"; do
echo "$key" >> /solana-authorized_keys
done