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

@ -630,6 +630,7 @@ $(
cat \ cat \
disable-background-upgrades.sh \ disable-background-upgrades.sh \
create-solana-user.sh \ create-solana-user.sh \
solana-user-authorized_keys.sh \
add-testnet-solana-user-authorized_keys.sh \ add-testnet-solana-user-authorized_keys.sh \
install-certbot.sh \ install-certbot.sh \
install-earlyoom.sh \ install-earlyoom.sh \

View File

@ -6,13 +6,14 @@ set -ex
[[ -d /home/solana/.ssh ]] || exit 1 [[ -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 # 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 for key in "${SOLANA_PUBKEYS[@]}"; do
echo "$key" >> /solana-authorized_keys echo "$key" >> /solana-authorized_keys
done done

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash #
# Contains the public keys for users that should automatically be granted access # Contains the public keys for users that should automatically be granted access
# to ALL testnets and datacenter nodes. # to ALL testnets and datacenter nodes.
# #
@ -8,6 +8,7 @@
# 3. Add an entry to SOLANA_PUBKEYS with the contents of ~/.ssh/id-solana-testnet.pub # 3. Add an entry to SOLANA_PUBKEYS with the contents of ~/.ssh/id-solana-testnet.pub
# #
# If you need multiple keys with your username, repeatedly add your username to SOLANA_USERS, once per key # If you need multiple keys with your username, repeatedly add your username to SOLANA_USERS, once per key
#
SOLANA_USERS=() SOLANA_USERS=()
SOLANA_PUBKEYS=() SOLANA_PUBKEYS=()