diff --git a/Dockerfile b/Dockerfile index 8e43097..20370d4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,6 @@ RUN apt-get update && apt-get install -y \ ffmpeg \ git \ gnupg2 \ - libavahi-compat-libdnssd-dev \ libfontconfig \ libpam0g-dev \ libpcap-dev \ diff --git a/scripts/avahi_startup.sh b/scripts/avahi_startup.sh index 53e304b..ce0a015 100644 --- a/scripts/avahi_startup.sh +++ b/scripts/avahi_startup.sh @@ -7,7 +7,7 @@ then echo "Avahi already installed..." else echo "Installing avahi-daemon..." - apt-get update && apt-get install -y avahi-daemon && rm -rf /var/lib/apt/lists/* + apt-get update && apt-get install -y libavahi-compat-libdnssd-dev avahi-daemon && rm -rf /var/lib/apt/lists/* echo "Configuring avahi-daemon..." sed -i '/^rlimit-nproc/s/^\(.*\)/#\1/g' /etc/avahi/avahi-daemon.conf echo "Configuring dbus..." diff --git a/scripts/iobroker_startup.sh b/scripts/iobroker_startup.sh index b609143..ed65952 100644 --- a/scripts/iobroker_startup.sh +++ b/scripts/iobroker_startup.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Checking env-variables packages=$PACKAGES @@ -11,7 +11,7 @@ cd /opt/iobroker echo 'Startupscript running...' -if [ `ls -1a|wc -l` -lt 3 ]; +if [ `ls -1a|wc -l` -lt 3 ] then echo 'Directory /opt/iobroker is empty!' echo 'Restoring...' @@ -19,7 +19,7 @@ then echo 'Restoring done...' fi -if [ -f /opt/iobroker/.install_host ]; +if [ -f /opt/iobroker/.install_host ] then echo 'First run preparation! Used Hostname:' $(hostname) echo 'Renaming ioBroker...' @@ -28,7 +28,7 @@ then echo 'First run preparation done...' fi -if [ "$avahi" == "true"]; +if [ "$avahi" = "true" ] then echo 'Initializing Avahi-Daemon...' sudo sh /opt/scripts/avahi_startup.sh