Skip to content

Commit

Permalink
inveniogc: better tempdir deletion
Browse files Browse the repository at this point in the history
* FIX Fixes garbage collection of temporary directories created by
  websubmit_icon_creator and websubmit_file_stamper.
  (closes #3556) (PR #3558)

Signed-off-by: Alexander Wagner <[email protected]>
  • Loading branch information
aw-bib authored and tiborsimko committed Nov 12, 2016
1 parent 1c37034 commit b455b95
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/websession/lib/inveniogc.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,15 +177,15 @@ def clean_tempfiles():
% (CFG_TMPDIR, CFG_TMPSHAREDDIR, \
CFG_MAX_ATIME_RM_BIBDOC, vstr))

write_message("- deleting old temporary WebSubmit icons")
write_message("- deleting old temporary WebSubmit icon dirs")
gc_exec_command('find %s %s -name "websubmit_icon_creator_*"'
' -atime +%s -exec rm %s -f {} \;' \
' -atime +%s -exec rm %s -rf {} \;' \
% (CFG_TMPDIR, CFG_TMPSHAREDDIR, \
CFG_MAX_ATIME_RM_ICON, vstr))

write_message("- deleting old temporary WebSubmit stamps")
write_message("- deleting old temporary WebSubmit stamp dirs")
gc_exec_command('find %s %s -name "websubmit_file_stamper_*"'
' -atime +%s -exec rm %s -f {} \;' \
' -atime +%s -exec rm %s -rf {} \;' \
% (CFG_TMPDIR, CFG_TMPSHAREDDIR, \
CFG_MAX_ATIME_RM_STAMP, vstr))

Expand Down

0 comments on commit b455b95

Please sign in to comment.