Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potential bug that empty folders will not be deleted #11

Open
lucajungnickel opened this issue Jun 27, 2023 · 0 comments
Open

Potential bug that empty folders will not be deleted #11

lucajungnickel opened this issue Jun 27, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@lucajungnickel
Copy link

I had a problem with the similar cleanup script that old users are getting deleted, but their root folder (i.e. 'user1') is still there, but empty. Therefore the cleanup is not working properly.

In this line:

find "$CLEANUP_DIR" -regex "$CLEANUP_DIR/.+" -mmin +30 -user author -delete

I added -empty tag for also deleting the empty folders (you can also look at my entrypoint.sh :))
Or is this not a problem in your project?

@lucajungnickel lucajungnickel added the bug Something isn't working label Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant