This commit is contained in:
Dolorosus 2023-12-02 11:34:39 +03:00 committed by GitHub
commit 819f33527c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 9 deletions

View File

@ -334,15 +334,8 @@ if [[ $currentsize -eq $minsize ]]; then
exit 11
fi
#Add some free space to the end of the filesystem
extra_space=$(($currentsize - $minsize))
logVariables $LINENO extra_space
for space in 5000 1000 100; do
if [[ $extra_space -gt $space ]]; then
minsize=$(($minsize + $space))
break
fi
done
#Add 5% free space to the end of the filesystem
minsize=$(($minsize + ($minsize/20)))
logVariables $LINENO minsize
#Shrink filesystem