Browse Source

Fix hardcoded user

Change-Id: I22930d4cba3ef5f21f15b0d60fc4a33ca62cde8e
Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
Guo Ruijing 2 years ago
parent
commit
1c6b6e5e83
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      demo/02_install_packages.sh

+ 4
- 2
demo/02_install_packages.sh View File

@@ -1,7 +1,9 @@
1 1
 #!/bin/sh
2 2
 
3
-cat << EOF | sudo tee /etc/sudoers.d/fuel
4
-fuel ALL = (root) NOPASSWD:ALL
3
+user=`whoami`
4
+
5
+cat << EOF | sudo tee /etc/sudoers.d/${user}
6
+${user} ALL = (root) NOPASSWD:ALL
5 7
 EOF
6 8
 
7 9
 sudo apt-get update -y

Loading…
Cancel
Save