summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuo Ruijing <ruijing.guo@intel.com>2016-06-28 12:33:51 -0700
committerGuo Ruijing <ruijing.guo@intel.com>2016-06-28 12:34:08 -0700
commit1c6b6e5e83a776e6ba4d3f3d517025ec40135f66 (patch)
treea727fa18b6d252d742cfc29196932731e58295e6
parentfd77b5d48782e67306c3763dc1908f0fb342c51d (diff)
Fix hardcoded user
Change-Id: I22930d4cba3ef5f21f15b0d60fc4a33ca62cde8e Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
Notes
Notes (review): Code-Review+2: Ruijing <ruijing.guo@intel.com> Workflow+1: Ruijing <ruijing.guo@intel.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Wed, 29 Jun 2016 02:37:26 +0000 Reviewed-on: https://review.openstack.org/335285 Project: openstack/fuel-plugin-ovs Branch: refs/heads/master
-rwxr-xr-xdemo/02_install_packages.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/demo/02_install_packages.sh b/demo/02_install_packages.sh
index 3f421ea..19c3d8a 100755
--- a/demo/02_install_packages.sh
+++ b/demo/02_install_packages.sh
@@ -1,7 +1,9 @@
1#!/bin/sh 1#!/bin/sh
2 2
3cat << EOF | sudo tee /etc/sudoers.d/fuel 3user=`whoami`
4fuel ALL = (root) NOPASSWD:ALL 4
5cat << EOF | sudo tee /etc/sudoers.d/${user}
6${user} ALL = (root) NOPASSWD:ALL
5EOF 7EOF
6 8
7sudo apt-get update -y 9sudo apt-get update -y