changed layout to work as a repository in hassio

This commit is contained in:
Marcus Westin 2019-12-13 17:59:48 +01:00
parent acb3cc1ad3
commit 471ec7023e
12 changed files with 47 additions and 14 deletions

View file

@ -0,0 +1,8 @@
#!/usr/bin/execlineb -S0
# ==============================================================================
# Community Hass.io Add-ons: Plejd
# ==============================================================================
if -n { s6-test $# -ne 0 }
if -n { s6-test ${1} -eq 256 }
s6-svscanctl -t /var/run/s6/services

View file

@ -0,0 +1,14 @@
#!/usr/bin/with-contenv bashio
# ==============================================================================
# Community Hass.io Add-ons: Plejd
# Runs the Plejd service
# ==============================================================================
bashio::log.info 'Starting the Plejd service...'
# Change working directory
cd /plejd || bashio::exit.nok 'Unable to change working directory'
# Run the Plejd service
chmod +x /usr/bin/plejd.sh
exec /usr/bin/plejd.sh