]> andersk Git - moira.git/blame - gen/hesiod.sh
Initial revision
[moira.git] / gen / hesiod.sh
CommitLineData
de56407f 1#! /bin/sh
2TARFILE=/tmp/hesiod
3SRC_DIR=/etc/athena/_nameserver
4DEST_DIR=/etc/athena/nameserver
5if [ ! -d $SRC_DIR ]; then
6 /bin/rm -f $SRC_DIR
7 /bin/mkdir $SRC_DIR
8 /bin/chmod 755 $SRC_DIR
9fi
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
15cd $SRC_DIR
16for 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
24done
25#/bin/rm -f $TARFILE
26#kill -HUP `/bin/cat /etc/named.pid`
27
28
29exit
30#
31# $Source$
32# $Header$
33#
This page took 0.051895 seconds and 5 git commands to generate.