docker-rpi-homebridge/start.sh

15 lines
305 B
Bash
Raw Normal View History

2016-11-15 01:01:34 +00:00
#! /bin/sh
# Fix avahi
sed -i "s/rlimit-nproc=3/#rlimit-nproc=3/" /etc/avahi/avahi-daemon.conf
dbus-daemon --system
avahi-daemon -D
service dbus start
service avahi-daemon start
# Install desired plugins
cat /root/.homebridge/plugins.txt | xargs npm install -g --unsafe-perm
# Start service
homebridge