From 1cd20da9b65b110649b42862b74a9fd5a5d9c201 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Wed, 15 Dec 2021 05:59:02 +0100 Subject: [PATCH] Use localhost as default master to allow host lookup --- cluster/apt.apply.update.sh | 2 +- cluster/apt.check.update.sh | 2 +- cluster/maco.apply.update.sh | 2 +- cluster/maco.check.update.sh | 2 +- cluster/sge.disable.host.queue.sh | 2 +- cluster/sge.enable.host.queue.sh | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cluster/apt.apply.update.sh b/cluster/apt.apply.update.sh index 8a45e71..f115d88 100755 --- a/cluster/apt.apply.update.sh +++ b/cluster/apt.apply.update.sh @@ -295,7 +295,7 @@ main() { # {{{ ### If sge_master_uri wasn't defined (environment variable,…) {{{ if [ -z "${sge_master_uri}" ]; then ## Get SGE master from current configuration - sge_master_uri=$(grep --max-count=1 -- "" /var/lib/gridengine/default/common/act_qmaster 2>/dev/null || echo "NO MASTER") + sge_master_uri=$(grep --max-count=1 -- "" /var/lib/gridengine/default/common/act_qmaster 2>/dev/null || echo "localhost") fi ### }}} ### If sge_master_port wasn't defined (environment variable,…) {{{ diff --git a/cluster/apt.check.update.sh b/cluster/apt.check.update.sh index 53173f6..f85f934 100755 --- a/cluster/apt.check.update.sh +++ b/cluster/apt.check.update.sh @@ -231,7 +231,7 @@ main() { # {{{ ### If sge_master_uri wasn't defined (environment variable,…) {{{ if [ -z "${sge_master_uri}" ]; then ## Get SGE master from current configuration - sge_master_uri=$(grep --max-count=1 -- "" /var/lib/gridengine/default/common/act_qmaster 2>/dev/null || echo "NO MASTER") + sge_master_uri=$(grep --max-count=1 -- "" /var/lib/gridengine/default/common/act_qmaster 2>/dev/null || echo "localhost") fi ### }}} ### If sge_master_port wasn't defined (environment variable,…) {{{ diff --git a/cluster/maco.apply.update.sh b/cluster/maco.apply.update.sh index 5cdf93e..66c9530 100755 --- a/cluster/maco.apply.update.sh +++ b/cluster/maco.apply.update.sh @@ -292,7 +292,7 @@ main() { # {{{ ### If sge_master_uri wasn't defined (environment variable,…) {{{ if [ -z "${sge_master_uri}" ]; then ## Get SGE master from current configuration - sge_master_uri=$(grep --max-count=1 -- "" /var/lib/gridengine/default/common/act_qmaster 2>/dev/null || echo "NO MASTER") + sge_master_uri=$(grep --max-count=1 -- "" /var/lib/gridengine/default/common/act_qmaster 2>/dev/null || echo "localhost") fi ### }}} ### If sge_master_port wasn't defined (environment variable,…) {{{ diff --git a/cluster/maco.check.update.sh b/cluster/maco.check.update.sh index e8fa12e..66eab53 100755 --- a/cluster/maco.check.update.sh +++ b/cluster/maco.check.update.sh @@ -296,7 +296,7 @@ main() { # {{{ ### If sge_master_uri wasn't defined (environment variable,…) {{{ if [ -z "${sge_master_uri}" ]; then ## Get SGE master from current configuration - sge_master_uri=$(grep --max-count=1 -- "" /var/lib/gridengine/default/common/act_qmaster 2>/dev/null || echo "NO MASTER") + sge_master_uri=$(grep --max-count=1 -- "" /var/lib/gridengine/default/common/act_qmaster 2>/dev/null || echo "localhost") fi ### }}} ### If sge_master_port wasn't defined (environment variable,…) {{{ diff --git a/cluster/sge.disable.host.queue.sh b/cluster/sge.disable.host.queue.sh index 184b9fb..04d1cb3 100755 --- a/cluster/sge.disable.host.queue.sh +++ b/cluster/sge.disable.host.queue.sh @@ -252,7 +252,7 @@ main() { # {{{ ### If sge_master_uri wasn't defined (environment variable,…) {{{ if [ -z "${sge_master_uri}" ]; then ## Get SGE master from current configuration - sge_master_uri=$(grep --max-count=1 -- "" /var/lib/gridengine/default/common/act_qmaster 2>/dev/null || echo "NO MASTER") + sge_master_uri=$(grep --max-count=1 -- "" /var/lib/gridengine/default/common/act_qmaster 2>/dev/null || echo "localhost") fi ### }}} ### If sge_master_port wasn't defined (environment variable,…) {{{ diff --git a/cluster/sge.enable.host.queue.sh b/cluster/sge.enable.host.queue.sh index ef0bbd7..21434f6 100755 --- a/cluster/sge.enable.host.queue.sh +++ b/cluster/sge.enable.host.queue.sh @@ -525,7 +525,7 @@ main() { # {{{ ### If sge_master_uri wasn't defined (environment variable,…) {{{ if [ -z "${sge_master_uri}" ]; then ## Get SGE master from current configuration - sge_master_uri=$(grep --max-count=1 -- "" /var/lib/gridengine/default/common/act_qmaster 2>/dev/null || echo "NO MASTER") + sge_master_uri=$(grep --max-count=1 -- "" /var/lib/gridengine/default/common/act_qmaster 2>/dev/null || echo "localhost") fi ### }}} ### If sge_master_port wasn't defined (environment variable,…) {{{