mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-27 15:04:04 +00:00
13 lines
588 B
Bash
Executable File
13 lines
588 B
Bash
Executable File
#!/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 ) |