corrections

This commit is contained in:
buanet
2019-01-28 14:23:24 +01:00
parent eea1c61ac5
commit efee71f212
3 changed files with 5 additions and 6 deletions

View File

@@ -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..."

View File

@@ -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