mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-04-27 14:29:51 +00:00
join: Disable local mode when joining a cloud
Change-type: patch Signed-off-by: Cameron Diver <cameron@balena.io>
This commit is contained in:
parent
82602abf8d
commit
3ca1d7c864
@ -338,6 +338,9 @@ module.exports = class APIBinder
|
|||||||
(currentState, targetConfig, defaultConfig, deviceId) =>
|
(currentState, targetConfig, defaultConfig, deviceId) =>
|
||||||
currentConfig = currentState.local.config
|
currentConfig = currentState.local.config
|
||||||
Promise.mapSeries _.toPairs(currentConfig), ([ key, value ]) =>
|
Promise.mapSeries _.toPairs(currentConfig), ([ key, value ]) =>
|
||||||
|
# We want to disable local mode when joining a cloud
|
||||||
|
if key == 'SUPERVISOR_LOCAL_MODE'
|
||||||
|
value = 'false'
|
||||||
# We never want to disable VPN if, for instance, it failed to start so far
|
# We never want to disable VPN if, for instance, it failed to start so far
|
||||||
if key == 'SUPERVISOR_VPN_CONTROL'
|
if key == 'SUPERVISOR_VPN_CONTROL'
|
||||||
value = 'true'
|
value = 'true'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user