Update scripts

This commit is contained in:
pvizeli 2017-03-17 10:51:27 +01:00
parent e7eb357dce
commit 8f6a1078e0
2 changed files with 7 additions and 1 deletions

View File

@ -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}
}

View File

@ -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