Revision 25017,
515 bytes
checked in by jdreed, 14 years ago
(diff) |
In clusterinfo:
* Don't hardcode version 10 (Trac #753)
|
-
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 |
---|
[25017] | 5 | ver=$(lsb_release -sr) |
---|
| 6 | if [ $(echo "$ver < 10" | bc -q) -eq 1 ]; then |
---|
| 7 | ver=10 |
---|
| 8 | fi |
---|
[23130] | 9 | |
---|
| 10 | getcluster -b $ver > $base.sh.new |
---|
| 11 | if [ $? -eq 0 -a -s $base.sh.new ]; then |
---|
| 12 | chmod 644 $base.sh.new |
---|
[24158] | 13 | mv -fT $base.sh.new $base.sh |
---|
[23130] | 14 | fi |
---|
| 15 | |
---|
| 16 | getcluster $ver > $base.csh.new |
---|
| 17 | if [ $? -eq 0 -a -s $base.csh.new ]; then |
---|
| 18 | chmod 644 $base.csh.new |
---|
[24158] | 19 | mv -fT $base.csh.new $base.csh |
---|
[23130] | 20 | fi |
---|
[24157] | 21 | |
---|
[24158] | 22 | . $base.sh |
---|
[24157] | 23 | run-parts /usr/share/debathena-clusterinfo/update.d |
---|
Note: See
TracBrowser
for help on using the repository browser.