mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-21 19:51:28 +00:00
fix: nix collect garbage
This commit is contained in:
parent
8ef63eb90e
commit
2a44a5e06b
|
@ -21,7 +21,13 @@ CLEAR_COMPLETED = "Garbage collection completed."
|
||||||
|
|
||||||
def delete_old_gens_and_return_dead_report() -> str:
|
def delete_old_gens_and_return_dead_report() -> str:
|
||||||
subprocess.run(
|
subprocess.run(
|
||||||
["nix-env", "-p", "/nix/var/nix/profiles/system", "--delete-generations old"],
|
[
|
||||||
|
"nix-env",
|
||||||
|
"-p",
|
||||||
|
"/nix/var/nix/profiles/system",
|
||||||
|
"--delete-generations",
|
||||||
|
"old",
|
||||||
|
],
|
||||||
check=False,
|
check=False,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue