diff options
author | Naresh Kamboju <naresh.kamboju@linaro.org> | 2015-10-19 15:51:18 +0530 |
---|---|---|
committer | Naresh Kamboju <naresh.kamboju@linaro.org> | 2015-10-19 15:51:47 +0530 |
commit | b64742982390f97140cc445cf88fa40c69ecc1dc (patch) | |
tree | 6dfbdf8520e3162b0ca454d80decaa0a9bec782e | |
parent | 690302ce6a685baf444657100afaa9698e8a59b8 (diff) |
Adding new file prerequisites.sh
Signed-off-by: Naresh Kamboju <naresh.kamboju@linaro.org>
-rwxr-xr-x | prerequisites.sh | 24 | ||||
-rw-r--r-- | wa2host.yaml | 1 |
2 files changed, 25 insertions, 0 deletions
diff --git a/prerequisites.sh b/prerequisites.sh new file mode 100755 index 0000000..7010cc0 --- /dev/null +++ b/prerequisites.sh @@ -0,0 +1,24 @@ +pip --version +sudo chmod -R a+r /usr/local/lib/python2.7/dist-packages +sudo find /usr/local/lib/python2.7/dist-packages -type d -exec chmod a+x {} \; +sudo pip install --upgrade pip +sudo pip install --upgrade setuptools +pip --version + +mkdir /home/test + +useradd test -d /home/test -g sudo +echo "test ALL=(ALL:ALL) ALL" >> /etc/sudoers + +su test +id +pip --version +sudo chmod -R a+r /usr/local/lib/python2.7/dist-packages +sudo find /usr/local/lib/python2.7/dist-packages -type d -exec chmod a+x {} \; +sudo pip install --upgrade pip +sudo pip install --upgrade setuptools +pip --version +exit +id +pip --version +exit 0 diff --git a/wa2host.yaml b/wa2host.yaml index ccf5d7c..f3467f5 100644 --- a/wa2host.yaml +++ b/wa2host.yaml @@ -28,6 +28,7 @@ params: install: steps: + - './prerequisites.sh' - './install-wa2.sh $BUILD_TOOLS_URL $WA_HOME_URL' deps: - git |