Fix testnet deployment
This commit is contained in:
@ -630,6 +630,7 @@ $(
|
||||
cat \
|
||||
disable-background-upgrades.sh \
|
||||
create-solana-user.sh \
|
||||
solana-user-authorized_keys.sh \
|
||||
add-testnet-solana-user-authorized_keys.sh \
|
||||
install-certbot.sh \
|
||||
install-earlyoom.sh \
|
||||
|
@ -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
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# Contains the public keys for users that should automatically be granted access
|
||||
# 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
|
||||
#
|
||||
# If you need multiple keys with your username, repeatedly add your username to SOLANA_USERS, once per key
|
||||
#
|
||||
|
||||
SOLANA_USERS=()
|
||||
SOLANA_PUBKEYS=()
|
||||
|
Reference in New Issue
Block a user