mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-11-15 01:49:15 +00:00
13 lines
588 B
Bash
13 lines
588 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
set -x
|
||
|
|
||
|
source /usr/share/mynode/mynode_config.sh
|
||
|
|
||
|
torify wget $LATEST_VERSION_URL -O /usr/share/mynode/latest_version || \
|
||
|
( sleep 1s && torify wget $LATEST_VERSION_URL -O /usr/share/mynode/latest_version ) || \
|
||
|
( sleep 1s && wget $LATEST_VERSION_URL -O /usr/share/mynode/latest_version )
|
||
|
|
||
|
torify wget $LATEST_BETA_VERSION_URL -O /usr/share/mynode/latest_beta_version || \
|
||
|
( sleep 1s && torify wget $LATEST_BETA_VERSION_URL -O /usr/share/mynode/latest_beta_version ) || \
|
||
|
( sleep 1s && wget $LATEST_BETA_VERSION_URL -O /usr/share/mynode/latest_beta_version )
|