diff options
Diffstat (limited to 'potpourri/ca-pickle.py')
-rwxr-xr-x | potpourri/ca-pickle.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/potpourri/ca-pickle.py b/potpourri/ca-pickle.py index 2c63e978..5b88f3f9 100755 --- a/potpourri/ca-pickle.py +++ b/potpourri/ca-pickle.py @@ -65,6 +65,13 @@ for section in cfg.cfg.sections(): if os.path.isfile( cooked_config[section][option]): filenames.append(cooked_config[section][option]) +# Sigh, even here we need special hacks for rootd, which handles filenames a bit differently. +rootd_dir = cfg.get(section = "rootd", option = "rpki-root-dir", default = "") +for option in ("rpki-root-crl", "rpki-root-manifest", "rpki-subject-cert"): + fn = os.path.join(rootd_dir, cfg.get(section = "rootd", option = option, default = "")) + if os.path.isfile(fn): + filenames.append(fn) + for i, fn in enumerate(filenames): filenames[i] = os.path.abspath(fn) |