]> andersk Git - moira.git/blob - gen/hesiod.sh
Initial revision
[moira.git] / gen / hesiod.sh
1 #! /bin/sh
2 TARFILE=/tmp/hesiod
3 SRC_DIR=/etc/athena/_nameserver
4 DEST_DIR=/etc/athena/nameserver
5 if [ ! -d $SRC_DIR ]; then
6         /bin/rm -f $SRC_DIR
7         /bin/mkdir $SRC_DIR
8         /bin/chmod 755 $SRC_DIR
9 fi
10 #if [ ! -d $DEST_DIR ]; then
11 #       /bin/rm -f $DEST_DIR
12 #       /bin/mkdir $DEST_DIR
13 #       /bin/chmod 755 $DEST_DIR
14 #fi
15 cd $SRC_DIR
16 for file in `/bin/tar tf $TARFILE`; do 
17         if [ ./ = $file ]; then continue; fi
18         /bin/tar xf $TARFILE $file
19         if [ -s $file ]; then
20                 /bin/mv -f $file $DEST_DIR
21         else
22                 /bin/rm -f $file
23         fi
24 done
25 #/bin/rm -f $TARFILE
26 #kill -HUP `/bin/cat /etc/named.pid`
27
28
29 exit
30 #
31 #       $Source$
32 #       $Header$
33 #
This page took 0.036421 seconds and 5 git commands to generate.