mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
BUGFIX: couldn't upload backup on OSX
--B is not a valid df option on OSX
This commit is contained in:
parent
2ecb728e79
commit
ca9f6e9137
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ class Admin::BackupsController < Admin::AdminController
|
|||
private
|
||||
|
||||
def has_enough_space_on_disk?(size)
|
||||
`df -l -B 1K . | tail -1 | tr -s ' ' | cut -d ' ' -f 4`.to_i > size / 1024
|
||||
`df -Pk . | awk 'NR==2 {print $4 * 1024;}'`.to_i > size
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue