mirror of
https://github.com/tsightler/ring-mqtt.git
synced 2025-09-26 21:01:12 +08:00
Update init scripts
This commit is contained in:
@@ -5,7 +5,8 @@
|
||||
# ==============================================================================
|
||||
|
||||
if [[ "$1" -ne 0 ]] && [[ "$1" -ne 256 ]]; then
|
||||
bashio::log.warning "The ring-mqtt container is shutting down..."
|
||||
exec /run/s6/basedir/bin/halt
|
||||
fi
|
||||
|
||||
bashio::log.info "The ring-mqtt service exited unexpectedly, restarting..."
|
||||
bashio::log.warning "The ring-mqtt service exited unexpectedly, restarting..."
|
@@ -52,12 +52,12 @@ else
|
||||
cd /app/ring-mqtt
|
||||
fi
|
||||
|
||||
bashio::log.info "-------------------------------------------------------"
|
||||
bashio::log.info ring-mqtt.js version: $(cat package.json | grep version | cut -f4 -d'"')
|
||||
bashio::log.info Node version $(node -v)
|
||||
bashio::log.info NPM version $(npm -v)
|
||||
bashio::log.info $(git --version)
|
||||
bashio::log.info "-------------------------------------------------------"
|
||||
echo "-------------------------------------------------------"
|
||||
echo ring-mqtt.js version: $(cat package.json | grep version | cut -f4 -d'"')
|
||||
echo Node version $(node -v)
|
||||
echo NPM version $(npm -v)
|
||||
echo $(git --version)
|
||||
echo "-------------------------------------------------------"
|
||||
|
||||
bashio::log.info "Running ring-mqtt..."
|
||||
echo "Running ring-mqtt..."
|
||||
exec ./ring-mqtt.js
|
||||
|
Reference in New Issue
Block a user