Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bind-dnssec
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Valentin Samir
bind-dnssec
Commits
c6444033
Commit
c6444033
authored
Sep 03, 2016
by
Valentin Samir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style
parent
4c472095
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
routine.py
routine.py
+11
-7
No files found.
routine.py
View file @
c6444033
...
...
@@ -76,6 +76,7 @@ def bind_chown(path):
except
KeyError
:
sys
.
stderr
.
write
(
"User bind not found, failing to give keys ownership to bind
\n
"
)
def
bind_reload
():
cmd
=
[
"/usr/sbin/rndc"
,
"reload"
]
p
=
subprocess
.
Popen
(
cmd
)
...
...
@@ -268,16 +269,16 @@ class Key(object):
needed_date_name
,
self
.
keyid
,
self
.
zone_name
)
)
)
def
_date_check2
(
self
,
value
,
needed_date
,
value_name
,
needed_date_name
):
msg
=
"Cannot set
%
s date after
%
s date on key
%
s on zone
%
s"
%
(
value_name
,
needed_date_name
,
self
.
keyid
,
self
.
zone_name
)
value_name
,
needed_date_name
,
self
.
keyid
,
self
.
zone_name
)
if
value
is
None
and
needed_date
is
not
None
:
raise
RuntimeError
(
msg
)
elif
value
is
not
None
and
needed_date
is
not
None
:
...
...
@@ -569,7 +570,10 @@ if __name__ == '__main__':
if
args
.
ZSK
:
for
zone
in
zones
:
zone
.
key
(
show_zsk
=
True
)
if
not
any
([
args
.
make
,
args
.
cron
,
args
.
ds
,
args
.
key
,
args
.
ds_seen
,
args
.
nsec3
,
args
.
KSK
,
args
.
ZSK
]):
if
not
any
([
args
.
make
,
args
.
cron
,
args
.
ds
,
args
.
key
,
args
.
ds_seen
,
args
.
nsec3
,
args
.
KSK
,
args
.
ZSK
]):
parser
.
print_help
()
except
ValueError
as
error
:
sys
.
stderr
.
write
(
"
%
s
\n
"
%
error
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment