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