FlowFuse / device-agent

An agent to run FlowFuse managed instances of Node-RED on devices
Apache License 2.0
16 stars 8 forks source link

Install script defaults to running as root #187

Closed hardillb closed 12 months ago

hardillb commented 1 year ago

https://github.com/FlowFuse/device-agent/blob/239c1c824212c76575978badd4c765d73c10f308/service/raspbian-install-device-agent.sh#L93

$SUDO_USER is empty as it's not running under sudo.

Probably need to replace this with $USER

ZJvandeWeg commented 12 months ago

Thank you, I'll create a PR and close both with it