From: Peter Palfrader Date: Sun, 1 Oct 2017 17:40:20 +0000 (+0200) Subject: At least -current-live is expected to exist X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=66c5e3df957ba4027ed7ac4c1d66d229d76181b6;p=mirror%2Fdsa-puppet.git At least -current-live is expected to exist --- diff --git a/modules/roles/files/static-mirroring/static-master-run b/modules/roles/files/static-mirroring/static-master-run index 7571badb5..95c9355a5 100755 --- a/modules/roles/files/static-mirroring/static-master-run +++ b/modules/roles/files/static-mirroring/static-master-run @@ -182,6 +182,9 @@ def run_mirror(component): locks.append(fd) log("All locks acquired.") + for p in (live, ): + if not os.path.exists(p): os.mkdir(p, 0755) + #for p in (componentdir, live, tmpdir_new): # if not os.path.exists(p): os.mkdir(p, 0755) # fd = os.open(p, os.O_RDONLY)