mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-25 07:07:46 +01:00
from binaryname to directory name
This commit is contained in:
parent
4b52a3a000
commit
06ce46b408
1 changed files with 11 additions and 6 deletions
|
@ -162,7 +162,9 @@ if [ "${mode}" = "secure" ]; then
|
||||||
echo "error='PGP verify fail'"
|
echo "error='PGP verify fail'"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# note: install will be done the same as reckless further down
|
# note: install will be done the same as reckless further down
|
||||||
|
lndInterimsUpdateNew="${$lndUpdateVersion}"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -194,7 +196,7 @@ if [ "${mode}" = "reckless" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# prepare install
|
# prepare install
|
||||||
lndUpdateVersion="reckless"
|
lndInterimsUpdateNew="reckless"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# JOINED INSTALL (SECURE & RECKLESS)
|
# JOINED INSTALL (SECURE & RECKLESS)
|
||||||
|
@ -203,9 +205,12 @@ if [ "${mode}" = "secure" ] || [ "${mode}" = "reckless" ]; then
|
||||||
# install
|
# install
|
||||||
echo "# stopping LND"
|
echo "# stopping LND"
|
||||||
sudo systemctl stop lnd
|
sudo systemctl stop lnd
|
||||||
echo "# installing new LND binary"
|
echo "# unzip LND binary"
|
||||||
sudo -u admin tar -xzf ${binaryName}
|
sudo -u admin tar -xzf ${binaryName}
|
||||||
sudo install -m 0755 -o root -g root -t /usr/local/bin lnd-linux-${cpuArchitecture}-v${lndUpdateVersion}/*
|
# removing the tar.gz ending from the binary
|
||||||
|
directoryName="${binaryName%.*.*}"
|
||||||
|
echo "# install binary directory '${directoryName}'"
|
||||||
|
sudo install -m 0755 -o root -g root -t /usr/local/bin lnd-linux-*/*
|
||||||
sleep 3
|
sleep 3
|
||||||
installed=$(sudo -u admin lnd --version)
|
installed=$(sudo -u admin lnd --version)
|
||||||
if [ ${#installed} -eq 0 ]; then
|
if [ ${#installed} -eq 0 ]; then
|
||||||
|
@ -215,9 +220,9 @@ if [ "${mode}" = "secure" ] || [ "${mode}" = "reckless" ]; then
|
||||||
echo "# flag update in raspiblitz config"
|
echo "# flag update in raspiblitz config"
|
||||||
source /mnt/hdd/raspiblitz.conf
|
source /mnt/hdd/raspiblitz.conf
|
||||||
if [ ${#lndInterimsUpdate} -eq 0 ]; then
|
if [ ${#lndInterimsUpdate} -eq 0 ]; then
|
||||||
echo "lndInterimsUpdate='${lndUpdateVersion}'" >> /mnt/hdd/raspiblitz.conf
|
echo "lndInterimsUpdate='${lndInterimsUpdateNew}'" >> /mnt/hdd/raspiblitz.conf
|
||||||
else
|
else
|
||||||
sudo sed -i "s/^lndInterimsUpdate=.*/lndInterimsUpdate='${lndUpdateVersion}'/g" /mnt/hdd/raspiblitz.conf
|
sudo sed -i "s/^lndInterimsUpdate=.*/lndInterimsUpdate='${lndInterimsUpdateNew}'/g" /mnt/hdd/raspiblitz.conf
|
||||||
fi
|
fi
|
||||||
echo "# restarting LND"
|
echo "# restarting LND"
|
||||||
sudo systemctl start lnd
|
sudo systemctl start lnd
|
||||||
|
|
Loading…
Add table
Reference in a new issue