Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
dac2aaae
Commit
dac2aaae
authored
Sep 22, 2013
by
Will Daly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated install Python packages script to handle aborted jobs
parent
2907202c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
playbooks/roles/jenkins_worker/files/install_python_pkgs.sh
+10
-3
No files found.
playbooks/roles/jenkins_worker/files/install_python_pkgs.sh
View file @
dac2aaae
...
...
@@ -19,8 +19,9 @@ set -e
# the packages. If the virtualenv does not yet
# exist, it will be created.
#
# If the virtualenv already exists, it will not
# be modified.
# If the virtualenv has already been created
# and the packages installed, then the script
# will skip installation.
#
######################################################
...
...
@@ -32,7 +33,7 @@ fi
EGG_DIR
=
$1
VENV
=
$2
if
[
-e
$VENV
/
bin/activate
]
;
then
if
[
-e
$VENV
/
install_finished
]
;
then
echo
"
$VENV
already exists; skipping installation..."
else
...
...
@@ -52,4 +53,10 @@ else
for
egg_file
in
$EGG_DIR
/
*
.egg
;
do
easy_install
$egg_file
||
true
done
# Create indicator that we finished successfully.
# If we were interrupted (maybe the job was aborted),
# then this file won't be created, so the next
# job will retry the intallation (instead of skipping it).
touch
$VENV
/install_finished
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment