mirror of
https://github.com/buanet/ioBroker.docker.git
synced 2026-01-26 00:51:36 +02:00
corrections
This commit is contained in:
@@ -14,7 +14,6 @@ RUN apt-get update && apt-get install -y \
|
|||||||
ffmpeg \
|
ffmpeg \
|
||||||
git \
|
git \
|
||||||
gnupg2 \
|
gnupg2 \
|
||||||
libavahi-compat-libdnssd-dev \
|
|
||||||
libfontconfig \
|
libfontconfig \
|
||||||
libpam0g-dev \
|
libpam0g-dev \
|
||||||
libpcap-dev \
|
libpcap-dev \
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ then
|
|||||||
echo "Avahi already installed..."
|
echo "Avahi already installed..."
|
||||||
else
|
else
|
||||||
echo "Installing avahi-daemon..."
|
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..."
|
echo "Configuring avahi-daemon..."
|
||||||
sed -i '/^rlimit-nproc/s/^\(.*\)/#\1/g' /etc/avahi/avahi-daemon.conf
|
sed -i '/^rlimit-nproc/s/^\(.*\)/#\1/g' /etc/avahi/avahi-daemon.conf
|
||||||
echo "Configuring dbus..."
|
echo "Configuring dbus..."
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
# Checking env-variables
|
# Checking env-variables
|
||||||
packages=$PACKAGES
|
packages=$PACKAGES
|
||||||
@@ -11,7 +11,7 @@ cd /opt/iobroker
|
|||||||
|
|
||||||
echo 'Startupscript running...'
|
echo 'Startupscript running...'
|
||||||
|
|
||||||
if [ `ls -1a|wc -l` -lt 3 ];
|
if [ `ls -1a|wc -l` -lt 3 ]
|
||||||
then
|
then
|
||||||
echo 'Directory /opt/iobroker is empty!'
|
echo 'Directory /opt/iobroker is empty!'
|
||||||
echo 'Restoring...'
|
echo 'Restoring...'
|
||||||
@@ -19,7 +19,7 @@ then
|
|||||||
echo 'Restoring done...'
|
echo 'Restoring done...'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f /opt/iobroker/.install_host ];
|
if [ -f /opt/iobroker/.install_host ]
|
||||||
then
|
then
|
||||||
echo 'First run preparation! Used Hostname:' $(hostname)
|
echo 'First run preparation! Used Hostname:' $(hostname)
|
||||||
echo 'Renaming ioBroker...'
|
echo 'Renaming ioBroker...'
|
||||||
@@ -28,7 +28,7 @@ then
|
|||||||
echo 'First run preparation done...'
|
echo 'First run preparation done...'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$avahi" == "true"];
|
if [ "$avahi" = "true" ]
|
||||||
then
|
then
|
||||||
echo 'Initializing Avahi-Daemon...'
|
echo 'Initializing Avahi-Daemon...'
|
||||||
sudo sh /opt/scripts/avahi_startup.sh
|
sudo sh /opt/scripts/avahi_startup.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user