feat: Check if storage folder is writeable (#1005)
Some checks failed
Build / Check (push) Has been cancelled
Update / dockerHubDescription (push) Has been cancelled
Build / Build (push) Has been cancelled

This commit is contained in:
Kroese 2025-08-27 22:50:23 +02:00 committed by GitHub
parent a19bf2f066
commit 9aec5d20e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -103,8 +103,7 @@ SYS="${SYS/-generic/}"
FS="${FS/UNKNOWN //}"
FS="${FS/ext2\/ext3/ext4}"
FS=$(echo "$FS" | sed 's/[)(]//g')
SPACE=$(df --outpu
t=avail -B 1 "$STORAGE" | tail -n 1)
SPACE=$(df --output=avail -B 1 "$STORAGE" | tail -n 1)
SPACE_GB=$(formatBytes "$SPACE" "down")
AVAIL_MEM=$(formatBytes "$RAM_AVAIL" "down")
TOTAL_MEM=$(formatBytes "$RAM_TOTAL" "up")