Details
-
Type:
Bug
-
Status: Done
-
Priority:
(None)
-
Resolution: Fixed
-
Affects Version/s: 2.5.0
-
Fix Version/s: 2.7.1, 3.0.0, 2.6.2, 3.0.0-report
-
Labels:
-
Sprint:MEN Sprint 139
-
Story Points:5
-
Backlog:yes
-
Days in progress:3
Description
Original discussion on Mender Hub.
The core issue is that the shell is not launched as a login shell, and therefore it does not pick up the default PATH as it should. The solution is to add the -l argument to the shell.
Acceptance criteria:
- ShellArguments key (string list) added to mender-connect.conf.
- Defaults to ["-l"]
- Arguments are used when calling ShellCommand.
- Unit tests
- Make sure to test when setting it to empty, can easily be confused with the default.
- Documented in https://docs.mender.io/2.6/add-ons/remote-terminal/mender-connect-configuration-file/mender-connect-configuration-options