mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 19:39:30 +08:00
FIX: check free space in uploads directory, not global system
This commit is contained in:
@ -264,7 +264,7 @@ class CookedPostProcessor
|
||||
end
|
||||
|
||||
def available_disk_space
|
||||
100 - `df -l . | tail -1 | tr -s ' ' | cut -d ' ' -f 5`.to_i
|
||||
100 - `df -l #{Rails.root}/public/uploads | tail -1 | tr -s ' ' | cut -d ' ' -f 5`.to_i
|
||||
end
|
||||
|
||||
def dirty?
|
||||
|
Reference in New Issue
Block a user