Check for new version on startup

This commit is contained in:
Taylor Helsper 2019-07-28 16:02:56 -05:00
parent 43c2d280d9
commit 4d6b914e2a
2 changed files with 3 additions and 0 deletions

View File

@ -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

View File

@ -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"