mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-13 20:26:29 +00:00
Update scripts
This commit is contained in:
parent
e7eb357dce
commit
8f6a1078e0
@ -19,8 +19,8 @@ runSupervisor() {
|
||||
-e DOCKER_SOCKET=/var/run/docker.sock \
|
||||
-e BOOT_MOUNTPOINT=$BOOT_MOUNTPOINT \
|
||||
-e LED_FILE=${LED_FILE} \
|
||||
-e LISTEN_PORT=$LISTEN_PORT \
|
||||
-e SUPERVISOR_IMAGE=${SUPERVISOR_IMAGE} \
|
||||
-e SUPERVISOR_TAG=${SUPERVISOR_TAG} \
|
||||
${SUPERVISOR_IMAGE}
|
||||
}
|
||||
|
||||
|
@ -78,6 +78,12 @@ else
|
||||
error_handler $LINENO "no container engine detected"
|
||||
fi
|
||||
|
||||
request=$(curl $API_ENDPOINT/update_supervisor | jq -e -r '.message')
|
||||
if [ request != "ok" ]; then
|
||||
error_handler $LINENO $request
|
||||
fi
|
||||
|
||||
# reload supervisor config
|
||||
source /etc/resin-supervisor/supervisor.conf
|
||||
if [ -z "$UPDATER_SUPERVISOR_TAG" ]; then
|
||||
# Try to get the tag from supervisor.conf
|
||||
|
Loading…
x
Reference in New Issue
Block a user