Fix purge_tombstone for the brave new world of secure command execution
This commit is contained in:
parent
1cd14ef3aa
commit
da7a44064b
|
@ -59,7 +59,7 @@ module FileStore
|
||||||
end
|
end
|
||||||
|
|
||||||
def purge_tombstone(grace_period)
|
def purge_tombstone(grace_period)
|
||||||
Discourse::Utils.execute_command('find', tombstone_dir, '-mtime', "+#{grace_period}", '-type f -delete')
|
Discourse::Utils.execute_command('find', tombstone_dir, '-mtime', "+#{grace_period}", '-type', 'f', '-delete')
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_path_for(type, upload_id, sha, extension)
|
def get_path_for(type, upload_id, sha, extension)
|
||||||
|
|
Loading…
Reference in New Issue