Revision 24157,
454 bytes
checked in by broder, 14 years ago
(diff) |
In clusterinfo:
* Run through scripts in /usr/share/debathena-clusterinfo/update.d after
updating clusterinfo information. This gives other packages a hook for
reacting to clusterinfo changes.
|
-
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 |
---|
| 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 |
---|
[24157] | 20 | |
---|
| 21 | run-parts /usr/share/debathena-clusterinfo/update.d |
---|
Note: See
TracBrowser
for help on using the repository browser.