/etc/profile.d/apps-bin-path.sh does not fire on noninteractive logins.
$ ssh pi3 'echo $PATH' /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
Workaround: make it fire, dammit:
--- .bashrc.orig 2017-01-04 19:55:33.105726685 +0000 +++ .bashrc 2017-01-04 19:54:11.505653043 +0000 @@ -5,7 +5,9 @@ # If not running interactively, don't do anything case $- in *i*) ;; - *) return;; + *) # Work around rsync snap PATH problem + . /etc/profile.d/apps-bin-path.sh + return;; esac
# don't put duplicate lines or lines starting with space in the history.
/etc/profile. d/apps- bin-path. sh does not fire on noninteractive logins.
$ ssh pi3 'echo $PATH' sbin:/usr/ local/bin: /usr/sbin: /usr/bin: /sbin:/ bin:/usr/ games:/ usr/local/ games
/usr/local/
Workaround: make it fire, dammit:
--- .bashrc.orig 2017-01-04 19:55:33.105726685 +0000 d/apps- bin-path. sh
+++ .bashrc 2017-01-04 19:54:11.505653043 +0000
@@ -5,7 +5,9 @@
# If not running interactively, don't do anything
case $- in
*i*) ;;
- *) return;;
+ *) # Work around rsync snap PATH problem
+ . /etc/profile.
+ return;;
esac
# don't put duplicate lines or lines starting with space in the history.