Revision 23130,
401 bytes
checked in by ghudson, 16 years ago
(diff) |
Add a new package debathena-clusterinfo to cache Hesiod cluster info
for cluster machines.
|
-
Property svn:executable set to
*
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | # Get cluster information from Hesiod and save it. |
---|
3 | |
---|
4 | base=/var/run/athena-clusterinfo |
---|
5 | ver=10 |
---|
6 | |
---|
7 | getcluster -b $ver > $base.sh.new |
---|
8 | if [ $? -eq 0 -a -s $base.sh.new ]; then |
---|
9 | chmod 644 $base.sh.new |
---|
10 | rm -f $base.sh |
---|
11 | mv $base.sh.new $base.sh |
---|
12 | fi |
---|
13 | |
---|
14 | getcluster $ver > $base.csh.new |
---|
15 | if [ $? -eq 0 -a -s $base.csh.new ]; then |
---|
16 | chmod 644 $base.csh.new |
---|
17 | rm -f $base.csh |
---|
18 | mv $base.csh.new $base.csh |
---|
19 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.