aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2010-10-01 16:06:30 +0000
committerRob Austein <sra@hactrn.net>2010-10-01 16:06:30 +0000
commitad3fc47a54074b08bc6a191a12ba581da4b14aba (patch)
treee5ba25010bf15b21a21898aa98767879af2a087b
parentdb3d1aaa86855076016a078ce05d2d36e9dea810 (diff)
update_bpki now takes arguments like configure_daemons, so it can do
the whole job. svn path=/rpkid/rpki/myrpki.py; revision=3452
-rw-r--r--rpkid/rpki/myrpki.py15
1 files changed, 5 insertions, 10 deletions
diff --git a/rpkid/rpki/myrpki.py b/rpkid/rpki/myrpki.py
index 4586172c..eab0e095 100644
--- a/rpkid/rpki/myrpki.py
+++ b/rpkid/rpki/myrpki.py
@@ -1047,9 +1047,6 @@ class main(rpki.cli.Cmd):
Most likely this should be run under cron.
"""
- if arg:
- raise RuntimeError, "This command takes no arguments"
-
if self.bpki_servers:
bpkis = (self.bpki_resources, self.bpki_servers)
else:
@@ -1073,13 +1070,11 @@ class main(rpki.cli.Cmd):
for bpki in bpkis:
bpki.run_ca("-gencrl", "-out", bpki.crl)
- self.do_initialize(arg)
-
- # Er, except that this isn't really the end, now we need to run
- # configure_resources and configure_daemons and we don't (yet)
- # know what arguments to pass to those. Feh.
-
- print "Now you have to run configure_resources (and configure_daemons, if you're running daemons) to regenerate the remaining BPKI certificates"
+ self.do_initialize(None)
+ if self.run_rpkid or self.run_pubd or self.run_rootd:
+ self.do_configure_daemons(arg)
+ else:
+ self.do_configure_resources(None)
def do_configure_child(self, arg):