mirror of
https://github.com/buanet/ioBroker.docker.git
synced 2025-12-24 05:35:32 +02:00
corrections
This commit is contained in:
@@ -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..."
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user