source: trunk/debathena/debathena/clusterinfo/debian/save-cluster-info @ 24158

Revision 24158, 438 bytes checked in by broder, 14 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 *
RevLine 
[23130]1#!/bin/sh
2# Get cluster information from Hesiod and save it.
3
4base=/var/run/athena-clusterinfo
5ver=10
6
7getcluster -b $ver > $base.sh.new
8if [ $? -eq 0 -a -s $base.sh.new ]; then
9  chmod 644 $base.sh.new
[24158]10  mv -fT $base.sh.new $base.sh
[23130]11fi
12
13getcluster $ver > $base.csh.new
14if [ $? -eq 0 -a -s $base.csh.new ]; then
15  chmod 644 $base.csh.new
[24158]16  mv -fT $base.csh.new $base.csh
[23130]17fi
[24157]18
[24158]19. $base.sh
[24157]20run-parts /usr/share/debathena-clusterinfo/update.d
Note: See TracBrowser for help on using the repository browser.