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

Revision 24158, 438 bytes checked in by broder, 13 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 *
Line 
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
10  mv -fT $base.sh.new $base.sh
11fi
12
13getcluster $ver > $base.csh.new
14if [ $? -eq 0 -a -s $base.csh.new ]; then
15  chmod 644 $base.csh.new
16  mv -fT $base.csh.new $base.csh
17fi
18
19. $base.sh
20run-parts /usr/share/debathena-clusterinfo/update.d
Note: See TracBrowser for help on using the repository browser.