Revision 24158,
438 bytes
checked in by broder, 15 years ago
(diff) |
In clusterinfo:
* Make save-cluster-info do something slightly less dumb if
/var/run/athena-clusterinfo.sh or .csh is somehow a directory
* Source the new clusterinfo information befure calling the update.d
scripts so that they can access the environment variables easily.
|
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[23130] | 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 |
---|
[24158] | 10 | mv -fT $base.sh.new $base.sh |
---|
[23130] | 11 | fi |
---|
| 12 | |
---|
| 13 | getcluster $ver > $base.csh.new |
---|
| 14 | if [ $? -eq 0 -a -s $base.csh.new ]; then |
---|
| 15 | chmod 644 $base.csh.new |
---|
[24158] | 16 | mv -fT $base.csh.new $base.csh |
---|
[23130] | 17 | fi |
---|
[24157] | 18 | |
---|
[24158] | 19 | . $base.sh |
---|
[24157] | 20 | run-parts /usr/share/debathena-clusterinfo/update.d |
---|
Note: See
TracBrowser
for help on using the repository browser.