Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Usage:
help show help information
--update update crust node
--registry {cn|en} use registry to accelerate docker pull
--apiKey subscan api key
EOF
exit 0
}
Expand Down Expand Up @@ -150,6 +151,9 @@ install_crust_node()

echo "Install crust command line tool"
cp $localscriptdir/crust.sh /usr/bin/crust
if [ x"$SUBSCANAPIKEY" != x"" ]; then
sed -i "/%SUBSCANAPIKEY%/ c SUBSCANAPIKEY=$SUBSCANAPIKEY" $installdir/scripts/add_spower.sh
fi

log_success "------------Install success-------------"
}
Expand All @@ -172,6 +176,13 @@ while true ; do
region=$2
shift 2
;;
--apiKey)
if [ x"$2" == x"" ]; then
help
fi
SUBSCANAPIKEY=$2
shift 2
;;
--update)
update="true"
shift 1
Expand Down
Loading