mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-25 05:58:06 +00:00
Check for new version on startup
This commit is contained in:
parent
43c2d280d9
commit
4d6b914e2a
|
@ -205,6 +205,8 @@ echo 'nameserver 8.8.8.8' >> /etc/resolv.conf
|
|||
echo 'nameserver 8.8.4.4' >> /etc/resolv.conf
|
||||
echo 'nameserver 1.1.1.1' >> /etc/resolv.conf
|
||||
|
||||
# Check for new versions
|
||||
wget $LATEST_VERSION_URL -O /usr/share/mynode/latest_version || true
|
||||
|
||||
# Update current state
|
||||
if [ -f $QUICKSYNC_DIR/.quicksync_complete ]; then
|
||||
|
|
|
@ -16,6 +16,7 @@ QUICKSYNC_DIR=/mnt/hdd/mynode/quicksync
|
|||
QUICKSYNC_CONFIG_DIR=/mnt/hdd/mynode/.config/transmission
|
||||
QUICKSYNC_TORRENT_URL="https://mynodebtc.com/device/blockchain.tar.gz.torrent"
|
||||
QUICKSYNC_BANDWIDTH_FILE="/mnt/hdd/mynode/settings/bandwidth"
|
||||
LATEST_VERSION_URL="http://www.mynodebtc.com/device/latest_version"
|
||||
UPLOADER_FILE="/mnt/hdd/mynode/settings/uploader"
|
||||
LND_BACKUP_FOLDER="/home/bitcoin/lnd_backup/"
|
||||
LND_TLS_CERT_FILE="/mnt/hdd/mynode/lnd/tls.cert"
|
||||
|
|
Loading…
Reference in New Issue
Block a user