mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-09 20:53:10 +00:00
fix: nix collect garbage
This commit is contained in:
parent
8ef63eb90e
commit
81d082ff2a
|
@ -21,7 +21,12 @@ CLEAR_COMPLETED = "Garbage collection completed."
|
|||
|
||||
def delete_old_gens_and_return_dead_report() -> str:
|
||||
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,
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue