mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-29 15:44:13 +00:00
Remove assumption of supervisor path
This commit is contained in:
parent
c7ce76c436
commit
1b0a27f19d
@ -46,7 +46,7 @@ module.exports = (uuid) ->
|
||||
throw body
|
||||
|
||||
console.log('Configuring VPN..')
|
||||
vpnConf = fs.readFileAsync('/supervisor/src/openvpn.conf.tmpl', 'utf8')
|
||||
vpnConf = fs.readFileAsync(__dirname + '/openvpn.conf.tmpl', 'utf8')
|
||||
.then (tmpl) ->
|
||||
fs.writeFileAsync('/data/client.conf', _.template(tmpl)(body))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user