mirror of
https://github.com/buanet/ioBroker.docker.git
synced 2025-12-22 04:39:12 +02:00
Adjustments to all scripts
This commit is contained in:
24
debian/scripts/setup_avahi.sh
vendored
24
debian/scripts/setup_avahi.sh
vendored
@@ -2,19 +2,19 @@
|
||||
|
||||
if [ -e /usr/sbin/avahi-daemon ] && [ -e /var/run/dbus ]
|
||||
then
|
||||
echo '[setup_avahi.sh] Avahi is already installed. Nothing to do here.'
|
||||
echo "[setup_avahi.sh] Avahi is already installed. Nothing to do here."
|
||||
else
|
||||
echo -n '[setup_avahi.sh] Avahi-daemon is NOT installed. Going to install it now... '
|
||||
echo -n "[setup_avahi.sh] 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
|
||||
apt-get install -y --no-install-recommends 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 'Done.'
|
||||
echo -n '[setup_avahi.sh] Configuring avahi-daemon... '
|
||||
echo "Done."
|
||||
echo -n "[setup_avahi.sh] Configuring avahi-daemon... "
|
||||
sed -i '/^rlimit-nproc/s/^\(.*\)/#\1/g' /etc/avahi/avahi-daemon.conf
|
||||
echo 'Done.'
|
||||
echo -n '[setup_avahi.sh] Configuring dbus... '
|
||||
echo "Done."
|
||||
echo -n "[setup_avahi.sh] Configuring dbus... "
|
||||
mkdir /var/run/dbus/
|
||||
echo 'Done.'
|
||||
echo "Done."
|
||||
fi
|
||||
|
||||
if [ -f /var/run/dbus/pid ];
|
||||
@@ -27,12 +27,12 @@ then
|
||||
rm -f /var/run/avahi-daemon//pid
|
||||
fi
|
||||
|
||||
echo -n '[setup_avahi.sh] Starting dbus... '
|
||||
echo -n "[setup_avahi.sh] Starting dbus... "
|
||||
dbus-daemon --system >> /opt/scripts/avahi_startup.log 2>&1
|
||||
echo 'Done.'
|
||||
echo "Done."
|
||||
|
||||
echo -n '[setup_avahi.sh] Starting avahi-daemon... '
|
||||
echo -n "[setup_avahi.sh] Starting avahi-daemon..."
|
||||
/etc/init.d/avahi-daemon start >> /opt/scripts/avahi_startup.log 2>&1
|
||||
echo 'Done.'
|
||||
echo "Done."
|
||||
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user