From 156ae3b7a9892393e109e615c5d31c13fa98b741 Mon Sep 17 00:00:00 2001 From: Marko Lorentz <66749449+marko-lorentz@users.noreply.github.com> Date: Wed, 26 May 2021 08:59:09 +0200 Subject: [PATCH] Check for existing lbrycrd folder --- install.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index e40621c..dd1292a 100644 --- a/install.sh +++ b/install.sh @@ -860,9 +860,12 @@ cd ~ || exit wget https://github.com/lbryio/lbrycrd/releases/download/v0.17.3.3/lbrycrd-linux-1733.zip sudo unzip lbrycrd-linux-1733.zip -d /usr/bin -lbrycrdd -daemon -server -sleep 3 -lbrycrd-cli stop +# Make sure the working area of the lbrycrdd does exist by starting the daemon for some seconds +if [[ ! -d ~/.lbrycrd ]]; then + lbrycrdd -daemon -server + sleep 3 + lbrycrd-cli stop +fi # Create config for Lbry echo && echo "Configuring Lbrycrd.conf"