mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-02-20 09:46:19 +00:00
Writing down state after succesfull bootstrappingw
This commit is contained in:
parent
f6d09c958d
commit
a4e284fd93
@ -38,10 +38,6 @@ bootstrapTasks = [
|
||||
state.uuid = body.uuid
|
||||
state.gitUrl = body.gitUrl
|
||||
|
||||
console.log state
|
||||
|
||||
fs.writeFileSync(STATE_FILE, JSON.stringify(state))
|
||||
|
||||
fs.writeFileSync('/etc/openvpn/ca.crt', body.ca)
|
||||
fs.writeFileSync('/etc/openvpn/client.crt', body.cert)
|
||||
fs.writeFileSync('/etc/openvpn/client.key', body.key)
|
||||
@ -58,6 +54,7 @@ setHakiEnv = (callback) ->
|
||||
|
||||
stage1Tasks = [
|
||||
(callback) -> async.waterfall(bootstrapTasks, callback)
|
||||
(callback) -> fs.writeFileSync(STATE_FILE, JSON.stringify(state)) ; callback()
|
||||
(callback) -> exec('systemctl start openvpn@client', callback)
|
||||
(callback) -> exec('systemctl enable openvpn@client', callback)
|
||||
setHakiEnv
|
||||
|
Loading…
x
Reference in New Issue
Block a user