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

Feature request for hooks: env variable pointing to confdir #83

Open
ap opened this issue Jun 20, 2024 · 1 comment
Open

Feature request for hooks: env variable pointing to confdir #83

ap opened this issue Jun 20, 2024 · 1 comment

Comments

@ap
Copy link

ap commented Jun 20, 2024

It would be useful if uacme did setenv("UACME_CONFDIR", confdir, 1); somewhere early in main so hook scripts that want to keep their own configuration in the same directory structure could use that variable (or whatever you call it) to find their stuff.

This is already possible if the caller (e.g. the cronjob) chdirs to the confdir before invoking uacme, of course. It would just be nicer if the caller didn’t have to do anything but run uacme and the hook could just pick up where to look from its environment.

@ap
Copy link
Author

ap commented Jun 20, 2024

Oh, and for similar reasons a UACME_LOGLEVEL or something that reflects g_loglevel would also be nice – in order for hooks to know whether to blather or shut up depending on how verbose uacme itself was asked to be.

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