...
This commit is contained in:
@@ -19,15 +19,15 @@ fn startupcmd() ![]startupmanager.ZProcessNewArgs {
|
||||
mut peers_str := installer.peers.join(' ')
|
||||
mut tun_name := 'tun${installer.tun_nr}'
|
||||
|
||||
mut cmd:='mycelium --key-file ${osal.hero_path()!}/cfg/priv_key.bin --peers ${peers_str} --tun-name ${tun_name}'
|
||||
mut cmd := 'mycelium --key-file ${osal.hero_path()!}/cfg/priv_key.bin --peers ${peers_str} --tun-name ${tun_name}'
|
||||
if core.is_osx()! {
|
||||
cmd = "sudo ${cmd}"
|
||||
cmd = 'sudo ${cmd}'
|
||||
}
|
||||
|
||||
res << startupmanager.ZProcessNewArgs{
|
||||
name: 'mycelium'
|
||||
startuptype: .zinit
|
||||
cmd: cmd
|
||||
cmd: cmd
|
||||
env: {
|
||||
'HOME': os.home_dir()
|
||||
}
|
||||
|
||||
@@ -218,10 +218,7 @@ pub fn (mut self MyceliumInstaller) start() ! {
|
||||
|
||||
start_pre()!
|
||||
|
||||
|
||||
|
||||
for zprocess in startupcmd()! {
|
||||
|
||||
mut sm := startupmanager_get(zprocess.startuptype)!
|
||||
|
||||
console.print_debug('starting mycelium_installer with ${zprocess.startuptype}...')
|
||||
@@ -229,7 +226,6 @@ pub fn (mut self MyceliumInstaller) start() ! {
|
||||
sm.new(zprocess)!
|
||||
|
||||
sm.start(zprocess.name)!
|
||||
|
||||
}
|
||||
|
||||
start_post()!
|
||||
|
||||
Reference in New Issue
Block a user