mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-13 15:13:33 +01:00
export path to config file for use by hook scripts #319
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
@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.