X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=jenkins-init-scripts%2Fcreate-jenkins-user.sh;h=980eacf1377fcc0b6f9594cd67d89e88bbfaf9e9;hb=bafd57c92d85a6c8b2c3fd3dbe30aa3a09f8f620;hp=e1e0b1ec81b6a7036638d1a0c65de046b4097c3e;hpb=f50130f8bd687b514716a1300453c9fd70cfca99;p=releng%2Fglobal-jjb.git diff --git a/jenkins-init-scripts/create-jenkins-user.sh b/jenkins-init-scripts/create-jenkins-user.sh index e1e0b1ec..980eacf1 100755 --- a/jenkins-init-scripts/create-jenkins-user.sh +++ b/jenkins-init-scripts/create-jenkins-user.sh @@ -13,7 +13,9 @@ OS=$(facter operatingsystem | tr '[:upper:]' '[:lower:]') OS_RELEASE=$(facter lsbdistrelease | tr '[:upper:]' '[:lower:]') if [[ "$OS_RELEASE" == "18.04" && "$OS" == 'ubuntu' ]]; then - echo 'export PATH=$HOME/.local/bin:$PATH' >> /etc/profile + # We do not want var expansion here as profile script expands at runtime. + # shellcheck disable=SC2016 + echo 'export PATH=$HOME/.local/bin:$PATH' >> /etc/profile fi useradd -m -s /bin/bash jenkins