summaryrefslogtreecommitdiffstats
path: root/ci/02-maasdeploy.sh
diff options
context:
space:
mode:
authorNarinder Gupta <narinder.gupta@canonical.com>2016-01-22 14:59:17 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-01-22 14:59:17 +0000
commitdd299d64d88aa9f39452eff60ba52c2fdf76886d (patch)
treef807796a47dfc0f1059fc0cca2260b1847055c69 /ci/02-maasdeploy.sh
parent0b5df02fcaecfa60d35db8348aa7bc770d0f8d1e (diff)
parentae086b4efaf4fdb5964d7b4f5a66c0b075e81dab (diff)
Merge "modify the owner so that modify the sudoers locally."
Diffstat (limited to 'ci/02-maasdeploy.sh')
-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 f061281f..0cbd9ddc 100755
--- a/ci/02-maasdeploy.sh
+++ b/ci/02-maasdeploy.sh
@@ -35,6 +35,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/
@@ -52,7 +53,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