diff --git a/manager/tasks.py b/manager/tasks.py index 9798f76..3e4c667 100644 --- a/manager/tasks.py +++ b/manager/tasks.py @@ -21,12 +21,6 @@ def mkfirmware(device, path): DEVICEDIR = "/opt/vpnmanager/device-config/%i/" % device.model.id SRCDIR = "/opt/vpnmanager/imagebuilder/%i/" % device.model.id - if glob.glob(SRCDIR + "/.kumilock"): - return False - - with open(SRCDIR + "/.kumilock", "w") as lock: - lock.write("") - tempdir = tempfile.TemporaryDirectory() copy_tree(DEVICEDIR, tempdir.name) @@ -76,14 +70,12 @@ def mkfirmware(device, path): try: subprocess.call(["/usr/bin/make"]) except: - os.remove(SRCDIR + "/.kumilock") os.chdir(BEFORE) return False os.chdir(BEFORE) os.rename(glob.glob(SRCDIR + "/bin/targets/ar71xx/generic/*squashfs-sysupgrade.bin")[0], "%s/%s.bin" % (path, device.id)) - os.remove(SRCDIR + "/.kumilock") os.system("rm -rf " + SRCDIR + "/files/") os.system("rm " + SRCDIR + "/bin/targets/ar71xx/generic/*") device.firmware = datetime.datetime.now()