summaryrefslogtreecommitdiffstats
path: root/base/root/scripts/nsd_server_common.bash
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2009-12-04 16:25:13 +1100
committerMartin Schwenke <martin@meltin.net>2009-12-04 16:25:13 +1100
commitb48f3500b1ea359d8d563f708113a96138605479 (patch)
tree5b02067c38a04e0d23c5745548a2ff800ecb633f /base/root/scripts/nsd_server_common.bash
parent8a2a9a582f01d67755747ec7508988bbbe17dc7d (diff)
Reorganise base templates directory to allow for node-type-specific files.
* Previous contents of base/ are now in base/all. * create_node_COMMON() takes an extra argument (inserted as $3) that specifies the node type. All of the create_node_* functions pass "$type" for this argument. * setup_base() now has an optional argument, which is only passed by create_node_COMMON. Rather than simply copying and substituting templates for the entire $BASE_TEMPLATES/ subdirectory it now does this for $BASE_TEMPLATES/all and then $BASE_TEMPLATES/$type. Therefore, the contents of the type-specific directory override the contents of "all" directory. * releases/SoFS.common uses the "all" version of SoFS-postinstall.sh when setting POSTINSTALL_TEMPLATE. This variable also now respects $BASE_TEMPLATES instead of hard-coding the base/ subdirectory. Signed-off-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'base/root/scripts/nsd_server_common.bash')
-rw-r--r--base/root/scripts/nsd_server_common.bash18
1 files changed, 0 insertions, 18 deletions
diff --git a/base/root/scripts/nsd_server_common.bash b/base/root/scripts/nsd_server_common.bash
deleted file mode 100644
index d665c59..0000000
--- a/base/root/scripts/nsd_server_common.bash
+++ /dev/null
@@ -1,18 +0,0 @@
-# If there are sofs_storage nodes in the cluster (meaning that other
-# sofs_* nodes will not have direct-attached storage) then scripts
-# that include this snippet must be run on one of the storage nodes.
-# Therefore, in the case, this snippet tries to determine if it is
-# running on the 1st NSD server and, if not, attempts to run the
-# script there.
-
-nsd_servers="@@NSD_SERVERS@@"
-
-if [ -n "$nsd_servers" -a \
- "${HOSTNAME%%.*}" != "${nsd_servers%%[.,]*}" ] ; then
- if [ "${0#/}" != "$0" ] ; then
- script="$0"
- else
- script="${PWD}/${0}"
- fi
- exec ssh "${nsd_servers%%[.,]*}" "$script" "$@"
-fi