change permisson and retry. 73/7773/1
authorNarinder Gupta <narinder.gupta@canonical.com>
Fri, 22 Jan 2016 17:12:08 +0000 (11:12 -0600)
committerNarinder Gupta <narinder.gupta@canonical.com>
Fri, 22 Jan 2016 19:54:29 +0000 (19:54 +0000)
Change-Id: Ibb43cb665566e7a3c12d9dc8e90998cf304fbe1f
(cherry picked from commit 4aa8c6ed266665579332c678787d04b18e3f0b17)

ci/02-maasdeploy.sh

index f05d1f5..69323ef 100755 (executable)
@@ -37,6 +37,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
+    sudo chmod 660 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/