#1410 change how lndmange install detected (#1550)

This commit is contained in:
Christian Rotzoll 2020-09-16 01:08:09 +02:00 committed by rootzoll
parent 5f886524b2
commit cae65b0d88
2 changed files with 3 additions and 2 deletions

View File

@ -307,7 +307,7 @@ if [ "${lndmanage}" = "on" ]; then
sudo sed -i "s/^message=.*/message='Setup lndmanage '/g" ${infoFile}
sudo -u admin /home/admin/config.scripts/bonus.lndmanage.sh on >> ${logFile} 2>&1
else
echo "Provisioning ElectRS - keep default" >> ${logFile}
echo "Provisioning lndmanage - not active" >> ${logFile}
fi
# CUSTOM PORT

View File

@ -27,7 +27,8 @@ fi
# install
if [ "$1" = "1" ] || [ "$1" = "on" ]; then
if [ "${lndmanage}" == "on" ]; then
directoryExists=$(sudo ls /home/admin/lndmanage 2>/dev/null | wc -l)
if [ ${directoryExists} -gt 0 ]; then
echo "# FAIL - LNDMANAGE already installed"
sleep 3
exit 1