git.samba.org
/
tridge
/
autocluster.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Cleanup post-boot cluster configuration
[tridge/autocluster.git]
/
base
/
all
/
root
/
scripts
/
setup_cluster.sh
1
#!/bin/sh
2
3
dn=$(dirname $0)
4
5
for task ; do
6
case "$task" in
7
clusterfs)
8
type="@@CLUSTERFS_TYPE@@"
9
file="setup_clusterfs_${type}.sh"
10
;;
11
*)
12
file="setup_cluster_${task}.sh"
13
esac
14
15
path="${dn}/${file}"
16
17
if [ ! -x "$path" ] ; then
18
echo "Unable to find script \"${file}\" to setup task \"${task}\""
19
exit 1
20
fi
21
22
"$path" || exit $?
23
done