export path to config file for use by hook scripts #319

Closed
opened 2025-12-29 01:22:36 +01:00 by adam · 1 comment
Owner

Originally created by @JavaScriptDude on GitHub (Mar 27, 2018).

I have a need to read the config file from a hook script so I can append some additional custom configurations. This will make my hook scripts much cleaner.

In order to facilitate this, can we add a line in the code to export the config path:
export DEHYDRATED_CONFIG=${CONFIG}

-or- we can set the environment variable such that just the hook scripts can read it.

My usecase is to set a couple of flags in the config file for pfx (pkcs12) generation and to use special api's calls in the python based hook scripts. This way the hook scripts can be left generic and shared to the masses rather than having to tweak them by hand and be custom just for me.

Originally created by @JavaScriptDude on GitHub (Mar 27, 2018). I have a need to read the config file from a hook script so I can append some additional custom configurations. This will make my hook scripts much cleaner. In order to facilitate this, can we add a line in the code to export the config path: `export DEHYDRATED_CONFIG=${CONFIG}` -or- we can set the environment variable such that just the hook scripts can read it. My usecase is to set a couple of flags in the config file for pfx (pkcs12) generation and to use special api's calls in the python based hook scripts. This way the hook scripts can be left generic and shared to the masses rather than having to tweak them by hand and be custom just for me.
adam closed this issue 2025-12-29 01:22:37 +01:00
Author
Owner

@JavaScriptDude commented on GitHub (Mar 27, 2018):

Sorry, just found the env var from my hook script. Should have walked away from computer before submitting ;) Sorry for the noise.

@JavaScriptDude commented on GitHub (Mar 27, 2018): Sorry, just found the env var from my hook script. Should have walked away from computer before submitting ;) Sorry for the noise.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dehydrated#319