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 *.pyc
*.egg-info *.egg-info
build build
.coverage
.tox
stages: stages:
- test
- build_src - build_src
- build_pkg - build_pkg
- upload - upload
run_tests:
stage: test
image: "ai/test:base"
script:
- apt-get -qy install bind9utils
- tox -e py27
build:src: build:src:
stage: build_src stage: build_src
image: "ai/build:stretch" image: "ai/build:stretch"
......
...@@ -294,13 +294,13 @@ class DNSSECSigner(object): ...@@ -294,13 +294,13 @@ class DNSSECSigner(object):
old_umask = os.umask(077) old_umask = os.umask(077)
try: try:
ksk_file = subprocess.check_output([ ksk_file = subprocess.check_output([
'dnssec-keygen', '/usr/sbin/dnssec-keygen',
'-r', self.random_dev, '-r', self.random_dev,
'-3', '-q', '-f', 'KSK', '-3', '-q', '-f', 'KSK',
'-K', self.key_dir, '-K', self.key_dir,
zone_name]) zone_name])
zsk_file = subprocess.check_output([ zsk_file = subprocess.check_output([
'dnssec-keygen', '/usr/sbin/dnssec-keygen',
'-r', self.random_dev, '-r', self.random_dev,
'-3', '-q', '-3', '-q',
'-K', self.key_dir, '-K', self.key_dir,
...@@ -320,7 +320,7 @@ class DNSSECSigner(object): ...@@ -320,7 +320,7 @@ class DNSSECSigner(object):
# Use only one CPU/thread on purpose otherwise the record order is # Use only one CPU/thread on purpose otherwise the record order is
# not preserved and the results are difficult to compare. # not preserved and the results are difficult to compare.
subprocess.check_call([ subprocess.check_call([
'dnssec-signzone', '/usr/sbin/dnssec-signzone',
'-a', '-g', '-S', '-a', '-g', '-S',
'-n', '1', '-n', '1',
'-3', self.nsec3_salt, '-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