Rename sge disable queue script

This commit is contained in:
Jeremy Gardais 2020-06-22 11:25:11 +02:00
parent 14fc3ac684
commit 05bc7ac54e
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
3 changed files with 4 additions and 4 deletions

View File

@ -118,7 +118,7 @@ main() { # {{{
manage_args "${ARGS}" manage_args "${ARGS}"
disable_host_queue_script="${PROGDIR}/disable.host.queue.sh" sge_disable_host_queue_script="${PROGDIR}/sge.disable.host.queue.sh"
## 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
@ -132,7 +132,7 @@ main() { # {{{
### Disable SGE queue ### Disable SGE queue
is_apt_upgrade_present \ is_apt_upgrade_present \
&& touch "${APT_TMP_FILE}" && echo "APT upgrade is available." >> "${APT_TMP_FILE}" \ && touch "${APT_TMP_FILE}" && echo "APT upgrade is available." >> "${APT_TMP_FILE}" \
&& sh "${disable_host_queue_script}" \ && sh "${sge_disable_host_queue_script}" \
&& exit 0 && exit 0
} }

View File

@ -173,7 +173,7 @@ Local Maco version (${CURRENT_MACO_VERSION}) is different from latest version ($
# }}} # }}}
prepare_host_for_upgrade() { # {{{ prepare_host_for_upgrade() { # {{{
disable_host_queue_script="${PROGDIR}/disable.host.queue.sh" sge_disable_host_queue_script="${PROGDIR}/sge.disable.host.queue.sh"
if [ "${SIMULATE_MODE}" -eq 0 ]; then if [ "${SIMULATE_MODE}" -eq 0 ]; then
return 0 return 0
@ -181,7 +181,7 @@ prepare_host_for_upgrade() { # {{{
debug_message "prepare_host_for_upgrade \ debug_message "prepare_host_for_upgrade \
Disable SGE queue." Disable SGE queue."
sh "${disable_host_queue_script}" sh "${sge_disable_host_queue_script}"
return "${?}" return "${?}"
fi fi