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

Revision 24157, 454 bytes checked in by broder, 15 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 *
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  rm -f $base.sh
11  mv $base.sh.new $base.sh
12fi
13
14getcluster $ver > $base.csh.new
15if [ $? -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
19fi
20
21run-parts /usr/share/debathena-clusterinfo/update.d
Note: See TracBrowser for help on using the repository browser.