-
-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Try using s6 overlay to manage services * Minor updates * puid & pgid in docker-compose example * updated raspberry-pi image * locked node version * use correct tag for arm image
- Loading branch information
Showing
8 changed files
with
52 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
18 changes: 4 additions & 14 deletions
18
init.d/entrypoint.sh → root/etc/cont-init.d/50-plugins
100755 → 100644
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,11 @@ | ||
#!/bin/sh | ||
|
||
/init.d/set-timezone.sh | ||
|
||
rm -rf /var/run/dbus.pid | ||
rm -rf /var/run/avahi-daemon//pid | ||
|
||
dbus-daemon --system | ||
avahi-daemon -D | ||
#!/usr/bin/with-contenv sh | ||
|
||
[ -f /homebridge/package.json ] || cp /home/root/homebridge/default.package.json /homebridge/package.json | ||
[ -f /homebridge/config.json ] || cp /home/root/homebridge/default.config.json /homebridge/config.json | ||
|
||
echo "Removing old plugins..." | ||
echo "Homebridge: Removing old plugins..." | ||
npm prune | ||
echo "Installing plugins..." | ||
echo "Homebridge: Installing plugins..." | ||
yarn install | ||
|
||
sleep 5 | ||
|
||
exec "$@" | ||
chown -R abc:abc /homebridge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/with-contenv sh | ||
|
||
until [[ -e /var/run/dbus/system_bus_socket ]]; do | ||
sleep 1s | ||
done | ||
|
||
echo "Starting Avahi daemon" | ||
exec avahi-daemon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/with-contenv sh | ||
|
||
echo "Starting dbus-daemon" | ||
exec dbus-daemon --system --nofork |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/with-contenv sh | ||
sleep 5 | ||
s6-setuidgid abc homebridge -U /homebridge -P /homebridge/node_modules |