mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-21 03:55:23 +00:00
Auto-merge for PR #561 via VersionBot
Allow truthy values for deltas and lock override (i.e. the string 'tr…
This commit is contained in:
commit
cea1a4b781
@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file
|
||||
automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
|
||||
This project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
## v6.6.8 - 2018-02-27
|
||||
|
||||
* Allow truthy values for deltas and lock override (i.e. the string 'true' besides '1') #561 [Pablo Carranza Velez]
|
||||
|
||||
## v6.6.7 - 2018-02-27
|
||||
|
||||
* Since armel builds are disabled, do not pull an armel node base image, and ensure we never deploy an armel supervisor #560 [Pablo Carranza Velez]
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "resin-supervisor",
|
||||
"description": "This is resin.io's Supervisor, a program that runs on IoT devices and has the task of running user Apps (which are Docker containers), and updating them as Resin's API informs it to.",
|
||||
"version": "6.6.7",
|
||||
"version": "6.6.8",
|
||||
"license": "Apache-2.0",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
@ -242,7 +242,7 @@ fetch = (app, { deltaSource, setDeviceUpdateState = true } = {}) ->
|
||||
Promise.try ->
|
||||
conf = JSON.parse(app.config)
|
||||
Promise.join utils.getConfig('apiKey'), utils.getConfig('uuid'), (apiKey, uuid) ->
|
||||
if conf['RESIN_SUPERVISOR_DELTA'] == '1'
|
||||
if checkTruthy(conf['RESIN_SUPERVISOR_DELTA'])
|
||||
logSystemEvent(logTypes.downloadAppDelta, app)
|
||||
deltaOpts = {
|
||||
uuid, apiKey, deltaSource
|
||||
@ -834,8 +834,8 @@ application.update = update = (force, scheduled = false) ->
|
||||
app = remoteApps[appId]
|
||||
conf = JSON.parse(app.config)
|
||||
forceThisApp =
|
||||
conf['RESIN_SUPERVISOR_OVERRIDE_LOCK'] == '1' ||
|
||||
conf['RESIN_OVERRIDE_LOCK'] == '1'
|
||||
checkTruthy(conf['RESIN_SUPERVISOR_OVERRIDE_LOCK']) ||
|
||||
checkTruthy(conf['RESIN_OVERRIDE_LOCK'])
|
||||
strategy = conf['RESIN_SUPERVISOR_UPDATE_STRATEGY']
|
||||
timeout = conf['RESIN_SUPERVISOR_HANDOVER_TIMEOUT']
|
||||
updateUsingStrategy strategy, {
|
||||
|
Loading…
Reference in New Issue
Block a user