If set to /dev/stdout the console.log() line config.save (CONFIG=/root/config/user.env) is written to stateMachines/SETUP_SERVER.states.env and causes state machine to fail:
/stateMachines/SETUP_SERVER.states.env: line 1: syntax error near unexpected token `CONFIG=/root/config/user.env'
/stateMachines/SETUP_SERVER.states.env: line 1: `config.save (CONFIG=/root/config/user.env)'
/root/oosh/state: line 901: SETUP_SERVER_STATES[]: invalid variable name
https://github.com/Cerulean-Circle-GmbH/once.sh/blob/a371068a460df5876f5fdfbcae0419b2f448d0c7/this#L12
If set to
/dev/stdout
the console.log() lineconfig.save (CONFIG=/root/config/user.env)
is written to stateMachines/SETUP_SERVER.states.env and causes state machine to fail:LOG_DEVICE=/dev/tty
seems to work.