mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-03-17 13:21:44 +01:00
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:
parent
249c00f25b
commit
5c2bdcb954
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user