From adc2d95e5c060803430662aa481dae0fa6b09848 Mon Sep 17 00:00:00 2001 From: QlDoors Date: Thu, 27 Oct 2022 11:19:15 +0800 Subject: [PATCH] newchain.sh: add automatic installation of shasum --- newchain.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/newchain.sh b/newchain.sh index 6984788..6e14301 100755 --- a/newchain.sh +++ b/newchain.sh @@ -112,6 +112,11 @@ type supervisorctl &> /dev/null || (apt update && apt install -y supervisor) || exit 1 } +type shasum &> /dev/null || (apt update && apt install -y libdigest-sha-perl) || { + color "31" "Failed to install libdigest-sha-perl." + exit 1 +} + ################## work directory ################## color "37" "Trying to init the work directory..." mkdir -p /data/newchain/${networkname}/bin/