Remove assumption of supervisor path

This commit is contained in:
Petros Angelatos 2014-04-27 22:46:25 +01:00 committed by Pablo Carranza Vélez
parent c7ce76c436
commit 1b0a27f19d

View File

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