Open dseomn opened 9 years ago
Diff:
--- old
+++ new
@@ -23,15 +23,11 @@
exit successfully
else if database and directories are already initialized:
if db/dirs are from an old (known) version of rpstir:
- if forced:
+ if (forced) or (all upgrades are safe):
perform all upgrades
exit successfully
else:
- perform all safe upgrades possible
- if there are remaining risky upgrades:
- log error and exit
- else:
- exit successfully
+ log error and exit
else if db/dirs are from an old (unknown) version of rpstir:
log error and exit
else:
Original comment by: dseomn
Merge
bin/rpki/initialize.in
andbin/rpki/upgrade.in
into a single script with the following behavior (described in pseudo-code). Theforced
variable corresponds to a-f
or--force
argument passed to the new script. Note that some of the below functionality depends on [#17].Add a separate script to clear an existing database/directories (note that the above code doesn't do this).
Reported by: dseomn
Original Ticket: rpstir/tickets/20