From: Narinder Gupta Date: Fri, 22 Jan 2016 15:08:40 +0000 (-0600) Subject: using sudo in cat now. X-Git-Tag: brahmaputra.1.0~56^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=934aca5489e191f771503ddba23df4a0cf1d3225;p=joid.git using sudo in cat now. Change-Id: I5c3e91e322cd77e5b5f1ccc0df5c7988f64cdd59 (cherry picked from commit feca5a3612c43c92652b838eec24565ffe14b2b8) --- diff --git a/ci/02-maasdeploy.sh b/ci/02-maasdeploy.sh index a00fb002..76c7720b 100755 --- a/ci/02-maasdeploy.sh +++ b/ci/02-maasdeploy.sh @@ -33,7 +33,7 @@ echo "$USER ALL=(ALL) NOPASSWD:ALL" > 90-joid-init if [ -e /etc/sudoers.d/90-joid-init ]; then sudo cp /etc/sudoers.d/90-joid-init 91-joid-init sudo chown $USER:$USER 91-joid-init - cat 90-joid-init >> 91-joid-init + sudo cat 90-joid-init >> 91-joid-init sudo chown root:root 91-joid-init sudo mv 91-joid-init /etc/sudoers.d/ else