using sudo in cat now. 31/7731/1
authorNarinder Gupta <narinder.gupta@canonical.com>
Fri, 22 Jan 2016 15:08:40 +0000 (09:08 -0600)
committerNarinder Gupta <narinder.gupta@canonical.com>
Fri, 22 Jan 2016 15:08:40 +0000 (09:08 -0600)
Change-Id: I5c3e91e322cd77e5b5f1ccc0df5c7988f64cdd59

ci/02-maasdeploy.sh

index 0cbd9dd..8a22003 100755 (executable)
@@ -36,7 +36,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