2019-12-04 11:17:06 +01:00
|
|
|
#!/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
|
2019-12-14 14:10:43 +01:00
|
|
|
bashio::log.info 'Verified permissions on startup script'
|
2019-12-04 11:17:06 +01:00
|
|
|
chmod +x /usr/bin/plejd.sh
|
2019-12-14 14:10:43 +01:00
|
|
|
|
|
|
|
|
bashio::log.info 'Executing startup script'
|
2019-12-04 11:17:06 +01:00
|
|
|
exec /usr/bin/plejd.sh
|