summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarinder Gupta <narinder.gupta@canonical.com>2016-01-22 19:52:35 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-01-22 19:52:35 +0000
commitcf0df7681a4d274dc60eb1e2bc81909eb01b884f (patch)
treeff8788d0c3e4a81400317248fa3e334b14370de0
parent259ded0952e0f1401e705178b876fd99893808ea (diff)
parent234671520095d472704d61b6b81a9677a9d24ede (diff)
Merge "modify the owner so that modify the sudoers locally." into stable/brahmaputra
-rwxr-xr-xci/02-maasdeploy.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/ci/02-maasdeploy.sh b/ci/02-maasdeploy.sh
index da0e8835..7c6a0481 100755
--- a/ci/02-maasdeploy.sh
+++ b/ci/02-maasdeploy.sh
@@ -32,6 +32,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 chown root:root 91-joid-init
sudo mv 91-joid-init /etc/sudoers.d/
@@ -49,7 +50,7 @@ fi
if [ ! -e /var/lib/libvirt/images ]; then
sudo apt-get install libvirt-bin -y
- sudo adduser ubuntu libvirtd
+ sudo adduser $USER libvirtd
sudo virsh pool-define-as default --type dir --target /var/lib/libvirt/images/
sudo virsh pool-start default
sudo virsh pool-autostart default