From 4dcfeca0927b5c0fdf4e8d2d2761be7bd991105f Mon Sep 17 00:00:00 2001 From: Jack Date: Tue, 16 Feb 2016 10:25:15 -0500 Subject: [PATCH] speed up update scripts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit don’t download repo history, only what’s current. --- lbrynet/lbrynet_daemon/scripts/update_lbry.sh | 6 ++---- lbrynet/lbrynet_daemon/scripts/update_lbrynet.sh | 6 +++--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/lbrynet/lbrynet_daemon/scripts/update_lbry.sh b/lbrynet/lbrynet_daemon/scripts/update_lbry.sh index 6ae5fefee..291dfb3ba 100644 --- a/lbrynet/lbrynet_daemon/scripts/update_lbry.sh +++ b/lbrynet/lbrynet_daemon/scripts/update_lbry.sh @@ -13,13 +13,11 @@ if [ -d "$lbrycrd_directory" ]; then fi fi -echo "Updating LBRY" - tmp=$(mktemp -d) cd $tmp -echo "Downloading update" -git clone https://github.com/jackrobison/lbrynet-app.git &>/dev/null +echo "Downloading LBRY update" +git clone --depth 1 https://github.com/jackrobison/lbrynet-app.git &>/dev/null cd lbrynet-app unzip LBRY.app.zip &>/dev/null unzip LBRYURIHandler.app.zip &>/dev/null diff --git a/lbrynet/lbrynet_daemon/scripts/update_lbrynet.sh b/lbrynet/lbrynet_daemon/scripts/update_lbrynet.sh index 1cf48f540..ad418f04d 100644 --- a/lbrynet/lbrynet_daemon/scripts/update_lbrynet.sh +++ b/lbrynet/lbrynet_daemon/scripts/update_lbrynet.sh @@ -16,12 +16,12 @@ fi tmp=$(mktemp -d) cd $tmp -echo "Downloading update" +echo "Downloading LBRYnet update" -git clone https://github.com/lbryio/lbry.git &>/dev/null +git clone --depth 1 https://github.com/lbryio/lbry.git &>/dev/null cd lbry -echo "Updating lbrynet" +echo "Updating LBRYnet" sudo python setup.py install &>/dev/null mkdir -p "$lbrynet_directory" echo $current_version > "${lbrynet_directory}/lbrynet_version.txt"