fix: add qrencode dependency check to cl-plugin.clnrest.sh

Adds automatic check and installation of qrencode package
if missing to prevent 'command not found' errors when
generating QR codes.
This commit is contained in:
steepdawn974 2025-01-04 00:06:49 +01:00
parent 249c00f25b
commit 5c2bdcb954

View File

@ -11,6 +11,12 @@ fi
# check and load raspiblitz config to know which network is running
source /mnt/hdd/raspiblitz.conf
# check and install qrencode if not present
if [ $(dpkg-query -l | grep "ii qrencode" | wc -l) = 0 ]; then
echo "# Installing qrencode..."
sudo apt-get install -y qrencode >/dev/null 2>&1
fi
echo "# Running: 'cl-plugin.clnrest.sh $*'"
source <(/home/admin/config.scripts/network.aliases.sh getvars cl $2)