mirror of
https://github.com/buanet/ioBroker.docker.git
synced 2025-12-27 02:34:07 +02:00
small fixes
This commit is contained in:
@@ -145,7 +145,6 @@ echo ' '
|
||||
if [ "$avahi" = "true" ]
|
||||
then
|
||||
echo "Avahi-daemon is activated by ENV."
|
||||
echo "Initializing Avahi-Daemon..."
|
||||
chmod 764 /opt/scripts/setup_avahi.sh
|
||||
sh /opt/scripts/setup_avahi.sh
|
||||
echo "Done."
|
||||
@@ -155,7 +154,6 @@ fi
|
||||
if [ "$zwave" = "true" ]
|
||||
then
|
||||
echo "ZWave is activated by ENV."
|
||||
echo "Initializing ZWave-support..."
|
||||
chmod 764 /opt/scripts/setup_zwave.sh
|
||||
sh /opt/scripts/setup_zwave.sh
|
||||
echo "Done."
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo 'Checking avahi-daemon installation state...'
|
||||
echo "Checking avahi-daemon installation state..."
|
||||
|
||||
if [ -f /usr/sbin/avahi-daemon ]
|
||||
then
|
||||
echo 'Avahi already installed...'
|
||||
echo "Avahi is already installed..."
|
||||
else
|
||||
echo 'Installing avahi-daemon...'
|
||||
echo "Avahi-daemon is NOT installed. Going to install it now..."
|
||||
apt-get update > /opt/scripts/avahi_startup.log 2>&1
|
||||
apt-get install -y libavahi-compat-libdnssd-dev avahi-daemon >> /opt/scripts/avahi_startup.log 2>&1
|
||||
rm -rf /var/lib/apt/lists/* >> /opt/scripts/avahi_startup.log 2>&1
|
||||
echo 'Configuring avahi-daemon...'
|
||||
echo "Configuring avahi-daemon..."
|
||||
sed -i '/^rlimit-nproc/s/^\(.*\)/#\1/g' /etc/avahi/avahi-daemon.conf
|
||||
echo 'Configuring dbus...'
|
||||
echo "Configuring dbus..."
|
||||
mkdir /var/run/dbus/
|
||||
fi
|
||||
|
||||
@@ -26,10 +26,10 @@ then
|
||||
rm -f /var/run/avahi-daemon//pid
|
||||
fi
|
||||
|
||||
echo 'Starting dbus...'
|
||||
echo "Starting dbus..."
|
||||
dbus-daemon --system
|
||||
|
||||
echo 'Starting avahi-daemon...'
|
||||
echo "Starting avahi-daemon..."
|
||||
/etc/init.d/avahi-daemon start
|
||||
|
||||
exit 0
|
||||
|
||||
@@ -4,6 +4,8 @@ echo "Checking openzwave installation state..."
|
||||
|
||||
if [ -f /usr/local/lib64 ]
|
||||
then
|
||||
echo "Openzwave is already installed..."
|
||||
else
|
||||
echo "Openzwave is NOT installed. Going to install it now..."
|
||||
cd /opt
|
||||
curl -L -O http://old.openzwave.com/downloads/openzwave-1.6.945.tar.gz
|
||||
@@ -11,9 +13,7 @@ then
|
||||
cd openzwave-1.6.945 && make 2>&1 /dev/null && make install 2>&1 /dev/null
|
||||
ldconfig /usr/local/lib64
|
||||
cd /opt/iobroker
|
||||
echo "Openzwave is now installed..."
|
||||
else
|
||||
echo "Openzwave is already installed..."
|
||||
# echo "Openzwave is now installed..."
|
||||
fi
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user