This is a workaround for a bash 3.4 bug that does not
set ~/.local/bin in PATH.
Change-Id: I69a94442bf7b760712bf72cdbc207451b73cd408
Issue-ID: RELENG-1320
Signed-off-by: Jeremy Phelps <jphelps@linuxfoundation.org>
##############################################################################
OS=$(facter operatingsystem | tr '[:upper:]' '[:lower:]')
+OS_RELEASE=$(facter lsbdistrelease | tr '[:upper:]' '[:lower:]')
+
+if [[ "$OS_RELEASE" == "18.04" ]] && [[ "$OS" == 'ubuntu' ]]
+then
+ echo 'PATH=$HOME/.local/bin:$PATH
+export PATH' >> /etc/profile
+fi
useradd -m -s /bin/bash jenkins
--- /dev/null
+---
+fixes:
+ - |
+ On Ubuntu 18.04 set PATH to include $HOME/.local/bin.
+ This is needed for pip install --user to work, and is missing
+ in Ubuntu versions past 16.04.