Skip to content

Commit

Permalink
Update web_proxy.rst
Browse files Browse the repository at this point in the history
The `find` command used to clean-up the old lightsquid reports doesn't work: it tries to delete non empty folders, so it generate an error.
Suggest do change the `-delete`  option with `-exec rm -rf {} \;`
  • Loading branch information
nrauso authored Feb 6, 2023
1 parent 10a6595 commit 583aa15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion administrator-manual/en/web_proxy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ Since all reports are kept forever, the size of the directory can greatly grow d
To cleanup all reports older than 1 year, execute the following:
::

find /var/lightsquid/ -maxdepth 1 -mindepth 1 -type d -name '????????' -mtime +360 -delete
find /var/lightsquid/ -maxdepth 1 -mindepth 1 -type d -name '????????' -mtime +360 -exec rm -rf {} \;

Cache
=====
Expand Down

0 comments on commit 583aa15

Please sign in to comment.