]> andersk Git - moira.git/blame - gen/hesiod.sh
Added tf_util error codes
[moira.git] / gen / hesiod.sh
CommitLineData
de56407f 1#! /bin/sh
2TARFILE=/tmp/hesiod
51bf07bb 3SRC_DIR=/etc/athena/_nameserver
de56407f 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
51bf07bb 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
de56407f 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
51bf07bb 25# The following three lines were changed by WES on 9/10/87.
26# They may not be in the sources.
f89684dc 27/bin/rm -f $TARFILE
28kill -KILL `/bin/cat /etc/named.pid`
de56407f 29
f89684dc 30csh -fc "unlimit; /etc/named"
31
ceb34639 32
de56407f 33exit
34#
35# $Source$
36# $Header$
37#
This page took 0.05951 seconds and 5 git commands to generate.