mknet/scenarios/clean

12 lines
240 B
Text
Raw Permalink Normal View History

2022-09-14 15:25:16 +00:00
#!/usr/bin/env python3
import os
2022-09-26 15:05:56 +00:00
from fragments import garage, shared, minio
2022-09-14 15:25:16 +00:00
garage.destroy()
2022-09-26 15:05:56 +00:00
minio.destroy()
2022-09-19 12:16:08 +00:00
if len(shared.storage_path) > 8 and shared.id() == 1:
shared.exec(f"rm -r {shared.storage_path}")
2022-09-14 15:25:16 +00:00
shared.log("clean done")