mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 14:02:15 +00:00
comment
This commit is contained in:
@@ -86,6 +86,9 @@ def auto_clean_btrfs():
|
|||||||
versions_to_remove = set(local_versions).difference(versions_to_keep)
|
versions_to_remove = set(local_versions).difference(versions_to_keep)
|
||||||
|
|
||||||
for version in versions_to_remove:
|
for version in versions_to_remove:
|
||||||
|
# Interesting bit: linux allows us to remove the disk image file for a mount
|
||||||
|
# while the mount is still being used.
|
||||||
|
# We delete the disk image, update nginx config and only then unmount the /mnt dir.
|
||||||
print(f' removing version for {area}: {version}')
|
print(f' removing version for {area}: {version}')
|
||||||
version_dir = config.runs_dir / area / version
|
version_dir = config.runs_dir / area / version
|
||||||
shutil.rmtree(version_dir)
|
shutil.rmtree(version_dir)
|
||||||
|
|||||||
Reference in New Issue
Block a user