Commit a509a9ff authored by ale's avatar ale

Use hard-coded paths for dnssec utils

parent 64a9f625
Pipeline #1208 passed with stages
in 1 minute and 3 seconds
*.pyc
*.egg-info
build
.coverage
.tox
stages:
- test
- build_src
- build_pkg
- upload
run_tests:
stage: test
image: "ai/test:base"
script:
- apt-get -qy install bind9utils
- tox -e py27
build:src:
stage: build_src
image: "ai/build:stretch"
......
......@@ -294,13 +294,13 @@ class DNSSECSigner(object):
old_umask = os.umask(077)
try:
ksk_file = subprocess.check_output([
'dnssec-keygen',
'/usr/sbin/dnssec-keygen',
'-r', self.random_dev,
'-3', '-q', '-f', 'KSK',
'-K', self.key_dir,
zone_name])
zsk_file = subprocess.check_output([
'dnssec-keygen',
'/usr/sbin/dnssec-keygen',
'-r', self.random_dev,
'-3', '-q',
'-K', self.key_dir,
......@@ -320,7 +320,7 @@ class DNSSECSigner(object):
# Use only one CPU/thread on purpose otherwise the record order is
# not preserved and the results are difficult to compare.
subprocess.check_call([
'dnssec-signzone',
'/usr/sbin/dnssec-signzone',
'-a', '-g', '-S',
'-n', '1',
'-3', self.nsec3_salt,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment