-
Notifications
You must be signed in to change notification settings - Fork 0
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
Clean up specified directories during user deletion #6
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great! Thanks for taking the initiative. Can we make this a bit more general, and take in template strings instead? We can have the string handle %u
and %U
replacements automatically.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty good!
Co-authored-by: Ben Zhang <ben-z@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Before we merge this, can you find your way around the infra-config repo and test this out on some dummy user? It might take some looking around, but the relevant pieces are:
Closes #1.
I decided to add a directories property to the config object so the the script can remove multiple directories. I could instead use a constant in the script that specifies the directories that need to be deleted, but I thought it would be inconsistent.