lamassu-server/blockchains/zcash/upgrade.sh
2017-07-06 21:56:56 +03:00

11 lines
286 B
Bash

#!/usr/bin/env bash
set -e
LOG_FILE=/tmp/install.log
wget -q $UPGRADE_URL >> $LOG_FILE 2>&1
tar -xzf $UPGRADE_PACKAGE >> $LOG_FILE 2>&1
supervisorctl stop zcash >> $LOG_FILE 2>&1
cp $UPGRADE_PACKAGE/bin/* /usr/local/bin/ >> $LOG_FILE 2>&1
supervisorctl start zcash >> $LOG_FILE 2>&1