Skip to content

Commit

Permalink
GridEngine: Use qconf -Mp when PE already exists
Browse files Browse the repository at this point in the history
Use `qconf`'s `-Ap` or `-Mp` depending on whether the named PE already exists or not.

Many thanks to @a1an77 for reporting the issue and suggesting this fix!
  • Loading branch information
riccardomurri committed Jul 24, 2020
1 parent 57bd0e2 commit b4b5fdb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@
- gridengine
- gridengine-master
shell: |
bash -lc '(qconf -spl | fgrep -q "{{item}}") || qconf -Ap {{SGE_ROOT}}/{{item}}.pe.conf'
bash -lc 'if (qconf -spl | fgrep -q "{{item}}"); then qconf -Mp {{SGE_ROOT}}/{{item}}.pe.conf; else qconf -Ap {{SGE_ROOT}}/{{item}}.pe.conf; fi'
loop:
# keep in sync with the contents of `all.q.conf`!
- make
Expand Down

0 comments on commit b4b5fdb

Please sign in to comment.