Code Review
/
releng
/
global-jjb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix jenkins-init scripts dir
[releng/global-jjb.git]
/
jenkins-init-scripts
/
create-jenkins-user.sh
diff --git
a/jenkins-init-scripts/create-jenkins-user.sh
b/jenkins-init-scripts/create-jenkins-user.sh
index
40ac25f
..
0005244
100755
(executable)
--- a/
jenkins-init-scripts/create-jenkins-user.sh
+++ b/
jenkins-init-scripts/create-jenkins-user.sh
@@
-10,6
+10,13
@@
##############################################################################
OS=$(facter operatingsystem | tr '[:upper:]' '[:lower:]')
##############################################################################
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
useradd -m -s /bin/bash jenkins