Test is_sge_host earlier
This commit is contained in:
parent
259fbd8531
commit
9617abc968
|
@ -262,13 +262,13 @@ Try to clean temp files, downloaded packages,…".
|
|||
# }}}
|
||||
main() { # {{{
|
||||
|
||||
manage_args "${ARGS}"
|
||||
|
||||
## If SGE is not yet available on this host
|
||||
### Exit
|
||||
is_sge_host \
|
||||
|| exit 0
|
||||
|
||||
manage_args "${ARGS}"
|
||||
|
||||
sge_hostname="$(hostname -f)"
|
||||
sge_queues_name="$(qhost -h "${sge_hostname:=/dev/null}" -q -xml \
|
||||
| grep "queue name" \
|
||||
|
|
|
@ -170,15 +170,15 @@ SGE slots currently in use: ${RED}${sge_slots_used:=/dev/null}${COLOR_DEBUG}."
|
|||
# }}}
|
||||
main() { # {{{
|
||||
|
||||
## Define all vars
|
||||
define_vars
|
||||
|
||||
## If SGE is not yet available on this host {{{
|
||||
### Exit
|
||||
is_sge_host \
|
||||
|| exit 0
|
||||
## }}}
|
||||
|
||||
## Define all vars
|
||||
define_vars
|
||||
|
||||
## If NO APT package upgrade is available {{{
|
||||
### Ensure to remove any temp file related to APT upgrades
|
||||
### AND Exit
|
||||
|
|
|
@ -259,13 +259,13 @@ Try to clean temp files,…"
|
|||
# }}}
|
||||
main() { # {{{
|
||||
|
||||
manage_args "${ARGS}"
|
||||
|
||||
## If SGE is not yet available on this host
|
||||
### Exit
|
||||
is_sge_host \
|
||||
|| exit 0
|
||||
|
||||
manage_args "${ARGS}"
|
||||
|
||||
sge_hostname="$(hostname -f)"
|
||||
sge_queues_name="$(qhost -h "${sge_hostname:=/dev/null}" -q -xml \
|
||||
| grep "queue name" \
|
||||
|
|
|
@ -441,14 +441,14 @@ Previously disabled by a script (or FORCE is enable), try to enable SGE queue: $
|
|||
# }}}
|
||||
main() { # {{{
|
||||
|
||||
## Define all vars according the selected options
|
||||
define_vars
|
||||
|
||||
## If SGE is not yet available on this host
|
||||
### Exit
|
||||
is_sge_host \
|
||||
|| exit 0
|
||||
|
||||
## Define all vars according the selected options
|
||||
define_vars
|
||||
|
||||
## If we need to watch for upgrades
|
||||
if [ "${CHECK_UPGRADE}" -eq "0" ]; then
|
||||
## If APT package upgrade is available
|
||||
|
|
Loading…
Reference in New Issue