mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-02-16 14:24:29 +00:00
feat: Print to the logs a message that it is not enough free space
This commit is contained in:
parent
7bc3a60607
commit
431165ca74
|
@ -28,6 +28,9 @@ class MigrateToFlakes(Migration):
|
|||
statvfs = os.statvfs("/")
|
||||
free_space = statvfs.f_frsize * statvfs.f_bavail
|
||||
if free_space < 5 * 1024 * 1024 * 1024:
|
||||
print("===================================")
|
||||
print("NOT ENOUGH FREE SPACE FOR MIGRATION")
|
||||
print("===================================")
|
||||
Jobs.add(
|
||||
name="NixOS upgrade to 23.11",
|
||||
type_id="migrations.migrate_to_flakes",
|
||||
|
|
Loading…
Reference in a new issue