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

Scripts on Postrun-hooks.d need to have a way to run in order. #891

Open
rsguru opened this issue Nov 15, 2022 · 0 comments
Open

Scripts on Postrun-hooks.d need to have a way to run in order. #891

rsguru opened this issue Nov 15, 2022 · 0 comments

Comments

@rsguru
Copy link

rsguru commented Nov 15, 2022

Description:
I want to run the scripts under Postrun-hooks.d folder in order.
Example files to run in order:
1 - copyCertToSomeFolder.sh
2 - reloadApache.sh
3 - sendEmailSuccess.sh

However, I can't find a way to make it in order. Looks like every time that I make changes in one of these files, it will be the one to first run.
It needs some sort of order ( by name / number the files)

I could use the hook file to be able to do some of these tasks. However, all those tasks need root access and Dehydrated's hooks only run as user dehydrated.

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

No branches or pull requests

1 participant