-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsosh.profile
36 lines (31 loc) · 933 Bytes
/
sosh.profile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# source this file from .profile to add sosh to the PATH
export SOSH="$(readlink -f "$(dirname "${BASH_SOURCE[0]}")")"
export PATH="$SOSH"/bin:"$PATH"
source "$SOSH"/sosh.bashrc
(
echo --[ system solana cli ]----------------------------------------
solana-install info --local
solana -V
echo --[ system summary ]--------------------------------------------
(
shopt -s nullglob
export PS4="==> "
set -x
hc
df -h . /mnt/{nvme*,tmpfs*}
ded
free -h
uptime
)
(
echo --[ sosh ]------------------------------------
#shellcheck source=/dev/null
. "$SOSH"/service-env.sh
echo "$(solana --version): $(readlink -f ~/solana)"
echo --[ $SOSH_CLUSTER config: $SOSH_CONFIG]-----------
for keypair in $SOSH_VALIDATOR_IDENTITY $SOSH_VALIDATOR_VOTE_ACCOUNT $SOSH_AUTHORIZED_VOTER; do
echo "$(basename "$keypair"): $(solana-keygen pubkey "$keypair")"
done
)
)
true