7ae96d882326357448f8f440c52f47ac1b1fa455Evan Hunt#!/bin/sh -e
7ae96d882326357448f8f440c52f47ac1b1fa455Evan Hunt#
8a718a0c547e256edabd2c91f77ed668d1dfc7f8Evan Hunt# Copyright (C) 2015-2017 Internet Systems Consortium, Inc. ("ISC")
7ae96d882326357448f8f440c52f47ac1b1fa455Evan Hunt#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# This Source Code Form is subject to the terms of the Mozilla Public
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# License, v. 2.0. If a copy of the MPL was not distributed with this
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# file, You can obtain one at http://mozilla.org/MPL/2.0/.
7ae96d882326357448f8f440c52f47ac1b1fa455Evan Hunt
7ae96d882326357448f8f440c52f47ac1b1fa455Evan HuntSYSTEMTESTTOP=..
7ae96d882326357448f8f440c52f47ac1b1fa455Evan Hunt. $SYSTEMTESTTOP/conf.sh
7ae96d882326357448f8f440c52f47ac1b1fa455Evan Hunt
7ae96d882326357448f8f440c52f47ac1b1fa455Evan Hunt$SHELL clean.sh
56e30ebae6fdb0bdf94419caff3a43fb2d16c5dfEvan Hunt
56e30ebae6fdb0bdf94419caff3a43fb2d16c5dfEvan Huntcp ns2/named1.conf ns2/named.conf
56e30ebae6fdb0bdf94419caff3a43fb2d16c5dfEvan Hunt
56e30ebae6fdb0bdf94419caff3a43fb2d16c5dfEvan Huntmkdir ns2/nope
24231e53a5c3079431f84dcddfee1e761fec7329Mark Andrews
24231e53a5c3079431f84dcddfee1e761fec7329Mark Andrewsif [ 1 = "${CYGWIN:-0}" ]
24231e53a5c3079431f84dcddfee1e761fec7329Mark Andrewsthen
24231e53a5c3079431f84dcddfee1e761fec7329Mark Andrews setfacl -s user::r-x,group::r-x,other::r-x ns2/nope
24231e53a5c3079431f84dcddfee1e761fec7329Mark Andrewselse
24231e53a5c3079431f84dcddfee1e761fec7329Mark Andrews chmod 555 ns2/nope
24231e53a5c3079431f84dcddfee1e761fec7329Mark Andrewsfi
24231e53a5c3079431f84dcddfee1e761fec7329Mark Andrews
56e30ebae6fdb0bdf94419caff3a43fb2d16c5dfEvan Huntecho "directory \"`pwd`/ns2\";" > ns2/dir
56e30ebae6fdb0bdf94419caff3a43fb2d16c5dfEvan Huntecho "directory \"`pwd`/ns2/nope\";" > ns2/nopedir
56e30ebae6fdb0bdf94419caff3a43fb2d16c5dfEvan Huntecho "managed-keys-directory \"`pwd`/ns2\";" > ns2/mkd
56e30ebae6fdb0bdf94419caff3a43fb2d16c5dfEvan Huntecho "managed-keys-directory \"`pwd`/ns2/nope\";" > ns2/nopemkd