diff options
author | yalei wang <wylandrea@gmail.com> | 2018-09-17 11:44:29 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2018-09-17 11:44:29 +0000 |
commit | caadf032661d01f77f043336aac308b458e372db (patch) | |
tree | 57b1d87783e893f01a96e3a13664dbe44c1ec910 /scripts/build_dmm_dep.sh | |
parent | 76d209198e0f392baca28e2cf15624799b851ace (diff) | |
parent | 2cd6092cc0cbbaa21f688bb8cdbef64944c8399b (diff) |
Merge "Fix: add dpdk building dependency"
Diffstat (limited to 'scripts/build_dmm_dep.sh')
-rwxr-xr-x | scripts/build_dmm_dep.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/build_dmm_dep.sh b/scripts/build_dmm_dep.sh index 980b3f5..ecbb686 100755 --- a/scripts/build_dmm_dep.sh +++ b/scripts/build_dmm_dep.sh @@ -2,6 +2,11 @@ set -x +# add inherited proxy for sudo user +LINE='Defaults env_keep += "ftp_proxy http_proxy https_proxy no_proxy"' +FILE=/etc/sudoers +grep -qF -- "$LINE" "$FILE" || sudo echo "$LINE" >> "$FILE" + OS_ID=$(grep '^ID=' /etc/os-release | cut -f2- -d= | sed -e 's/\"//g') #set and check the environment for Linux |