mirror of
https://github.com/buanet/ioBroker.docker.git
synced 2025-12-17 10:29:00 +02:00
20 lines
542 B
Bash
20 lines
542 B
Bash
#!/bin/bash
|
|
|
|
echo "Checking openzwave installation state..."
|
|
|
|
if [ -e /usr/local/lib64 ]
|
|
then
|
|
echo "Openzwave is already installed..."
|
|
else
|
|
echo "Openzwave is NOT installed. Going to install it now..."
|
|
cd /opt
|
|
curl -s -L -O http://old.openzwave.com/downloads/openzwave-1.6.1007.tar.gz
|
|
tar -xf openzwave-1.6.1007.tar.gz && rm openzwave-1.6.1007.tar.gz
|
|
cd openzwave-1.6.1007 && make > /dev/null 2>&1 && make install > /dev/null 2>&1
|
|
ldconfig /usr/local/lib64
|
|
cd /opt/iobroker
|
|
# echo "Openzwave is now installed..."
|
|
fi
|
|
|
|
exit 0
|