This is a workaround for a bash 3.4 bug that does not
set ~/.local/bin in PATH.
Issue-ID: RELENG-1320
Change-Id: I94bcc14f1dcfd1e813e09d1bf448d465549ea04c
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