autossh: bugfix: add env HOME for dropbear ssh
Fixed this 5 year old bug https://github.com/openwrt/packages/issues/5559 Signed-off-by: douniwan5788 <douniwan5788@gmail.com>
This commit is contained in:
parent
c7d23af17d
commit
2dff3d84c1
|
@ -50,6 +50,9 @@ start_instance() {
|
|||
procd_set_param respawn ${respawn_threshold:-3600} ${respawn_timeout:-5} ${respawn_retry:-5}
|
||||
[ -n "$pidfile" ] && procd_set_param pidfile "$pidfile"
|
||||
|
||||
#dropbear ssh seek the known_hosts file in $HOME/.ssh/known_hosts
|
||||
procd_append_param env "HOME=/root"
|
||||
|
||||
[ -n "$monitorport" ] && procd_append_param env "AUTOSSH_PORT=$monitorport"
|
||||
[ -n "$poll" ] && procd_append_param env "AUTOSSH_POLL=$poll"
|
||||
[ -n "$gatetime" ] && procd_append_param env "AUTOSSH_GATETIME=$gatetime"
|
||||
|
|
Loading…
Reference in New Issue