setup.sh 782 Bytes
Newer Older
1 2
#!/bin/sh
#
3
# Copyright (C) 2010, 2012, 2014, 2016  Internet Systems Consortium, Inc. ("ISC")
Mark Andrews's avatar
Mark Andrews committed
4
#
5 6 7
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
8

9 10 11
SYSTEMTESTTOP=..
. $SYSTEMTESTTOP/conf.sh

12 13
$SHELL clean.sh

14
test -r $RANDFILE || $GENRANDOM 800 $RANDFILE
15

Evan Hunt's avatar
Evan Hunt committed
16 17 18 19 20
cp ns1/named1.conf ns1/named.conf
cp ns2/named1.conf ns2/named.conf
cp ns3/named1.conf ns3/named.conf
cp ns4/named1.conf ns4/named.conf

21
if $SHELL ../testcrypto.sh -q
22
then
23 24
	(cd ns1 && $SHELL -e sign.sh)
	(cd ns4 && $SHELL -e sign.sh)
25 26 27 28 29
else
	echo "I:using pre-signed zones"
	cp -f ns1/signed.db.presigned ns1/signed.db.signed
	cp -f ns4/signed.db.presigned ns4/signed.db.signed
fi