From 7c51ba40e4e18405fbd271f0e6fbfa34b062b90f Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Sun, 3 Feb 2013 16:36:45 +0000 Subject: Don't try to run rcynic-html if parent output directory doesn't exist. svn path=/branches/tk377/; revision=5019 --- rcynic/rcynic-cron.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rcynic/rcynic-cron.py') diff --git a/rcynic/rcynic-cron.py b/rcynic/rcynic-cron.py index 4687ff5b..d985d7e3 100644 --- a/rcynic/rcynic-cron.py +++ b/rcynic/rcynic-cron.py @@ -79,7 +79,7 @@ except (IOError, OSError), e: run(bin("rcynic", chroot = True), "-c", etc("rcynic.conf", chroot = True), chroot = True) -if ac_rcynic_html_dir: +if ac_rcynic_html_dir and os.path.exists(os.path.dirname(ac_rcynic_html_dir)): run(bin("rcynic-html"), rcy("data/rcynic.xml"), ac_rcynic_html_dir) run(bin("rtr-origin"), "--cronjob", rcy("data/authenticated"), cwd = rcy("rpki-rtr")) -- cgit v1.2.3