enhance logging for avahi & zwave install scripts

This commit is contained in:
buanet
2022-06-15 09:45:28 +02:00
parent de25659bcd
commit 2051a788aa
6 changed files with 33 additions and 33 deletions

View File

@@ -1,19 +1,17 @@
#!/bin/bash
echo "Checking openzwave installation state..."
if [ -e /usr/local/lib64 ]
then
echo "Openzwave is already installed..."
echo 'Openzwave is already installed. Nothing to do here.'
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..."
echo -n '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 'Done.'
fi
exit 0