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

Deleting process directory through script call #3258

Open
henning-gerhardt opened this issue Mar 3, 2020 · 2 comments
Open

Deleting process directory through script call #3258

henning-gerhardt opened this issue Mar 3, 2020 · 2 comments
Labels

Comments

@henning-gerhardt
Copy link
Collaborator

Current creating of process directory and its sub directories are done by a script call (except for current open bug #3196). This script can do a lot of things which is sometimes needed in more complex environments. Even through different workflows and things which are made in different tasks it is even possible to add and change the content of a process directories. Not in any case is this done by the user of running tomcat instance.

As deleting of a process is only done by program and Java coded logic not all content of a process directory could be deleted because the tomcat user did not have the right permissions to delete everything.

It would be nice if deleting of process directory and its content would be done even by a script call where you have more possibilities to delete everything according to the used environment.

@matthias-ronge
Copy link
Collaborator

See also #3448: The script should also delete the symbolic links in the user folders then.

@henning-gerhardt
Copy link
Collaborator Author

In an external (bash-)script you can do what ever you want. I started a possible implementation a while ago: https://github.com/slub/kitodo-production/tree/delete_by_script ... but I did not test it except on my local environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants