we need non-interaction

This commit is contained in:
rootzoll 2023-05-19 09:33:39 +02:00
parent 470260444a
commit 91bff7719a

View file

@ -16,13 +16,13 @@ fi
# 1. parameter [info|tested|reckless] # 1. parameter [info|tested|reckless]
mode="$1" mode="$1"
# RECOMMENDED UPDATE BY RASPIBLITZ TEAM # RECOMMENDED UPDATE BY RASPIBLITZ TEAM (just possible once per sd card update)
# comment will be shown as "BEWARE Info" when option is choosen (can be multiple lines) # comment will be shown as "BEWARE Info" when option is choosen (can be multiple lines)
bitcoinVersion="24.1" # example: 22.0 .. keep empty if no newer version as sd card build is available bitcoinVersion="24.1" # example: 22.0 .. keep empty if no newer version as sd card build is available
# needed to check code signing # needed to check code signing
# https://github.com/sipa.gpg # https://github.com/emzy.gpg
fallbackSigner=sipa fallbackSigner=Emzy
# GATHER DATA # GATHER DATA
# setting download directory to the current user # setting download directory to the current user
@ -148,17 +148,18 @@ if [ "${mode}" = "tested" ] || [ "${mode}" = "reckless" ] || [ "${mode}" = "cust
mkdir -p "${downloadDir}" mkdir -p "${downloadDir}"
cd "${downloadDir}" || exit 1 cd "${downloadDir}" || exit 1
echo "# Enter the github username of a signer. Find the list of signers at: " # NOTE: this script is run by provision and cannot have user input at this point or it will lock up the provision process
echo "https://github.com/bitcoin-core/guix.sigs/tree/main/${pathVersion}" # echo "# Enter the github username of a signer. Find the list of signers at: "
echo "# Example for Peter Wuille (https://github.com/sipa):" # echo "https://github.com/bitcoin-core/guix.sigs/tree/main/${pathVersion}"
echo "sipa" # echo "# Example for Peter Wuille (https://github.com/sipa):"
echo "# example for Emzy (https://github.com/Emzy):" # echo "sipa"
echo "Emzy" # echo "# example for Emzy (https://github.com/Emzy):"
read customSigner # echo "Emzy"
# read customSigner
if [ ${#customSigner} -eq 0 ]; then # if [ ${#customSigner} -eq 0 ]; then
customSigner=$fallbackSigner # customSigner=$fallbackSigner
fi # fi
customSigner=$fallbackSigner
echo "# Download the binary sha256 hash sum file" echo "# Download the binary sha256 hash sum file"
wget -O all.SHA256SUMS https://raw.githubusercontent.com/bitcoin-core/guix.sigs/main/${pathVersion}/${customSigner}/all.SHA256SUMS wget -O all.SHA256SUMS https://raw.githubusercontent.com/bitcoin-core/guix.sigs/main/${pathVersion}/${customSigner}/all.SHA256SUMS