Skip to content

Commit 5411dd9

Browse files
Merge pull request #454 from dappnode/pablo/deprecate-openethereum
Deprecate openethereum
2 parents 6c39d0d + c86dd7f commit 5411dd9

File tree

2 files changed

+19
-13
lines changed

2 files changed

+19
-13
lines changed

iso/scripts/download_core.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ source /tmp/vars.sh
88

99
DAPPNODE_CORE_DIR="/images"
1010
DAPPNODE_HASH_FILE="${DAPPNODE_CORE_DIR}/packages-content-hash.csv"
11-
CONTENT_HASH_PKGS=(geth openethereum nethermind)
11+
CONTENT_HASH_PKGS=(geth nethermind)
1212
IPFS_ENDPOINT=${IPFS_ENDPOINT:-"http://ipfs.io"}
1313

1414
SWGET="wget -q -O-"
@@ -24,7 +24,7 @@ for comp in "${components[@]}"; do
2424
if [[ ${!ver} == /ipfs/* ]]; then
2525
DOWNLOAD_URL="${IPFS_ENDPOINT}/api/v0/cat?arg=${!ver%:*}"
2626
fi
27-
27+
2828
eval "${comp}_URL=\"${DOWNLOAD_URL}/${comp,,}.dnp.dappnode.eth_${!ver##*:}_linux-amd64.txz\""
2929
eval "${comp}_YML=\"${DOWNLOAD_URL}/docker-compose.yml\""
3030
eval "${comp}_MANIFEST=\"${DOWNLOAD_URL}/dappnode_package.json\""

scripts/dappnode_install.sh

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ DAPPNODE_ACCESS_CREDENTIALS_URL="https://github.com/dappnode/DAppNode/releases/l
2121
WGET="wget -q --show-progress --progress=bar:force"
2222
SWGET="wget -q -O-"
2323
# Other
24-
CONTENT_HASH_PKGS=(geth openethereum nethermind)
24+
CONTENT_HASH_PKGS=(geth nethermind)
2525
ARCH=$(dpkg --print-architecture)
2626
WELCOME_MESSAGE="\nChoose a way to connect to your DAppNode, then go to \e[1mhttp://my.dappnode\e[0m\n\n\e[1m- Wifi\e[0m\t\tScan and connect to DAppNodeWIFI. Get wifi credentials with \e[32mdappnode_wifi\e[0m\n\n\e[1m- Local Proxy\e[0m\tConnect to the same router as your DAppNode. Then go to \e[1mhttp://dappnode.local\e[0m\n\n\e[1m- Wireguard\e[0m\tDownload Wireguard app on your device. Get your dappnode wireguard credentials with \e[32mdappnode_wireguard\e[0m\n\n\e[1m- Open VPN\e[0m\tDownload OPen VPN app on your device. Get your openVPN creds with \e[32mdappnode_openvpn\e[0m\n\n\nTo see a full list of commands available execute \e[32mdappnode_help\e[0m\n"
2727

@@ -57,7 +57,7 @@ is_iso_install() {
5757

5858
# Check is port 80 in used (necessary for HTTPS)
5959
is_port_used() {
60-
lsof -i -P -n | grep ":80 (LISTEN)" &>/dev/null && IS_PORT_USED=true || IS_PORT_USED=false
60+
lsof -i -P -n | grep ":80 (LISTEN)" &>/dev/null && IS_PORT_USED=true || IS_PORT_USED=false
6161
}
6262

6363
# Determine packages to be installed
@@ -89,8 +89,8 @@ function valid_ip() {
8989
IFS='.'
9090
ip=("$ip")
9191
IFS=$OIFS
92-
[[ ${ip[0]} -le 255 && ${ip[1]} -le 255 && \
93-
${ip[2]} -le 255 && ${ip[3]} -le 255 ]]
92+
[[ ${ip[0]} -le 255 && ${ip[1]} -le 255 &&
93+
${ip[2]} -le 255 && ${ip[3]} -le 255 ]]
9494
stat=$?
9595
fi
9696
return $stat
@@ -138,7 +138,10 @@ dappnode_core_build() {
138138
apt-get install -y git
139139
fi
140140
TMPDIR=$(mktemp -d)
141-
pushd "$TMPDIR" || { echo "Error on pushd"; exit 1; }
141+
pushd "$TMPDIR" || {
142+
echo "Error on pushd"
143+
exit 1
144+
}
142145
git clone -b "${!ver##*:}" https://github.com/dappnode/DNP_"${comp}"
143146
# Change version in YAML to the custom one
144147
DOCKER_VER=$(echo "${!ver##*:}" | sed 's/\//_/g')
@@ -147,7 +150,10 @@ dappnode_core_build() {
147150
cp ./DNP_"${comp}"/docker-compose.yml "${DAPPNODE_CORE_DIR}"/docker-compose-"${comp,,}".yml
148151
cp ./DNP_"${comp}"/dappnode_package.json "${DAPPNODE_CORE_DIR}"/dappnode_package-"${comp,,}".json
149152
rm -r ./DNP_"${comp}"
150-
popd || { echo "Error on popd"; exit 1; }
153+
popd || {
154+
echo "Error on popd"
155+
exit 1
156+
}
151157
fi
152158
done
153159
}
@@ -161,10 +167,10 @@ dappnode_core_download() {
161167
eval "[ -f \$${comp}_FILE ] || $WGET -O \$${comp}_FILE \$${comp}_URL || exit 1"
162168
# Download DAppNode Core docker-compose yml files if it's needed
163169
echo "Downloading ${comp} yml..."
164-
eval "[ -f \$${comp}_YML_FILE ] || $WGET -O \$${comp}_YML_FILE \$${comp}_YML || exit 1";
165-
# Download DAppNode Core manifest files if it's needed
170+
eval "[ -f \$${comp}_YML_FILE ] || $WGET -O \$${comp}_YML_FILE \$${comp}_YML || exit 1"
171+
# Download DAppNode Core manifest files if it's needed
166172
echo "Downloading ${comp} manifest..."
167-
eval "[ -f \$${comp}_MANIFEST_FILE ] || $WGET -O \$${comp}_MANIFEST_FILE \$${comp}_MANIFEST || exit 1";
173+
eval "[ -f \$${comp}_MANIFEST_FILE ] || $WGET -O \$${comp}_MANIFEST_FILE \$${comp}_MANIFEST || exit 1"
168174
fi
169175
done
170176
}
@@ -187,7 +193,7 @@ customMotd() {
187193
|___/_/ \_\ .__/ .__/_|\_\___/\__,_\___|
188194
|_| |_|
189195
EOF
190-
echo -e "$WELCOME_MESSAGE" >> "$MOTD_FILE"
196+
echo -e "$WELCOME_MESSAGE" >>"$MOTD_FILE"
191197
fi
192198
}
193199

@@ -303,7 +309,7 @@ installExtraDpkg
303309
echo -e "\e[32mGrabbing latest content hashes...\e[0m" 2>&1 | tee -a $LOGFILE
304310
grabContentHashes
305311

306-
if [ "$ARCH" == "amd64" ]; then
312+
if [ "$ARCH" == "amd64" ]; then
307313
echo -e "\e[32mInstalling SGX modules...\e[0m" 2>&1 | tee -a $LOGFILE
308314
installSgx
309315

0 commit comments

Comments
 (0)