Rename sge disable queue script
This commit is contained in:
parent
14fc3ac684
commit
05bc7ac54e
|
@ -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
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue