Test is_sge_host earlier

This commit is contained in:
Jeremy Gardais 2021-01-26 20:02:22 +01:00
parent 259fbd8531
commit 9617abc968
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
4 changed files with 10 additions and 10 deletions

View File

@ -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" \

View File

@ -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

View File

@ -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" \

View File

@ -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