Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update dependencies for Zcash Stretch build #11

Merged
merged 1 commit into from
Sep 8, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions wallets/zec-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@ export LOG_FILE=/tmp/zec-update.$(date +"%Y%m%d").log
echo
echo "Updating your Zcash wallet. This may take a minute."
supervisorctl stop zcash >> ${LOG_FILE} 2>&1
add-apt-repository -y ppa:ubuntu-toolchain-r/test >> ${LOG_FILE} 2>&1
apt update >> ${LOG_FILE} 2>&1
apt install -y gcc-4.9 >> ${LOG_FILE} 2>&1
apt install -y --only-upgrade libstdc++6 >> ${LOG_FILE} 2>&1
echo

echo "Downloading Zcash v3.1.0..."
curl -#Lo /tmp/zcash.tar.gz https://z.cash/downloads/zcash-3.1.0-linux64-debian-jessie.tar.gz >> ${LOG_FILE} 2>&1
echo "Downloading Zcash v4.0.0..."
curl -#Lo /tmp/zcash.tar.gz https://download.z.cash/downloads/zcash-4.0.0-linux64-debian-stretch.tar.gz >> ${LOG_FILE} 2>&1
tar -xzf /tmp/zcash.tar.gz -C /tmp/ >> ${LOG_FILE} 2>&1
echo

Expand All @@ -18,8 +22,8 @@ mv /usr/local/bin/zcashd /usr/local/bin/zcashd-old >> ${LOG_FILE} 2>&1
mv /usr/local/bin/zcash-cli /usr/local/bin/zcash-cli-old >> ${LOG_FILE} 2>&1
mv /usr/local/bin/zcash-tx /usr/local/bin/zcash-tx-old >> ${LOG_FILE} 2>&1
mv /usr/local/bin/zcash-fetch-params /usr/local/bin/zcash-fetch-params-old >> ${LOG_FILE} 2>&1
cp /tmp/zcash-3.1.0/bin/* /usr/local/bin/ >> ${LOG_FILE} 2>&1
rm -r /tmp/zcash-3.1.0 >> ${LOG_FILE} 2>&1
cp /tmp/zcash-4.0.0/bin/* /usr/local/bin/ >> ${LOG_FILE} 2>&1
rm -r /tmp/zcash-4.0.0 >> ${LOG_FILE} 2>&1
rm /tmp/zcash.tar.gz >> ${LOG_FILE} 2>&1
echo

Expand Down