Fix typo in how hostOSVersionPath was camel-cased

This was properly done in the recently added changes in bootstrap.coffee,
but all other references where using "Os" instead of "OS.

Change-Type: patch
Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
This commit is contained in:
Pablo Carranza Velez 2017-05-09 13:00:21 -07:00
parent f04ace4ae1
commit 08c5413413
3 changed files with 5 additions and 5 deletions

View File

@ -26,7 +26,7 @@ module.exports =
api: checkString(process.env.RESIN_SUPERVISOR_SECRET) ? null
logsChannel: checkString(process.env.RESIN_SUPERVISOR_LOGS_CHANNEL) ? null
vpnStatusPath: checkString(process.env.VPN_STATUS_PATH) ? '/mnt/root/run/openvpn/vpn_status'
hostOsVersionPath: checkString(process.env.HOST_OS_VERSION_PATH) ? '/mnt/root/etc/os-release'
hostOSVersionPath: checkString(process.env.HOST_OS_VERSION_PATH) ? '/mnt/root/etc/os-release'
dockerRoot: dockerRoot
btrfsRoot: checkString(process.env.BTRFS_ROOT) ? "#{dockerRoot}/btrfs/subvolumes"
privateAppEnvVars: [

View File

@ -226,7 +226,7 @@ do ->
return
exports.getOSVersion = memoizePromise ->
osRelease.getOSVersion(config.hostOsVersionPath)
osRelease.getOSVersion(config.hostOSVersionPath)
exports.isResinOSv1 = memoizePromise ->
exports.getOSVersion().then (osVersion) ->
@ -234,4 +234,4 @@ exports.isResinOSv1 = memoizePromise ->
return false
exports.getOSVariant = memoizePromise ->
osRelease.getOSVariant(config.hostOsVersionPath)
osRelease.getOSVariant(config.hostOSVersionPath)

View File

@ -5,8 +5,8 @@ request = require 'request'
url = require 'url'
osRelease = require './lib/os-release'
osVersion = osRelease.getOSVersionSync(config.hostOsVersionPath)
osVariant = osRelease.getOSVariantSync(config.hostOsVersionPath)
osVersion = osRelease.getOSVersionSync(config.hostOSVersionPath)
osVariant = osRelease.getOSVariantSync(config.hostOSVersionPath)
supervisorVersion = require('./lib/supervisor-version')
userAgent = "Supervisor/#{supervisorVersion}"