At least -current-live is expected to exist
authorPeter Palfrader <peter@palfrader.org>
Sun, 1 Oct 2017 17:40:20 +0000 (19:40 +0200)
committerPeter Palfrader <peter@palfrader.org>
Sun, 1 Oct 2017 17:40:20 +0000 (19:40 +0200)
modules/roles/files/static-mirroring/static-master-run

index 7571bad..95c9355 100755 (executable)
@@ -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)