dehydrated icon indicating copy to clipboard operation
dehydrated copied to clipboard

Add cmdline option to create a new dehydrated config directory

Open darix opened this issue 3 years ago • 3 comments

at least until we get multi CA support

dehydrated --init-config /path/to/dir/

create all the subdirectories with all the proper permissions. copy a skeleton config from /usr/share/dehydrated/config/

darix avatar Sep 16 '21 01:09 darix

Mh... not entirely sure how to actually implement this.

If there would be a defined path for all of the example files (like the /usr/share path you suggested) this would be easy, but there are tons of setups out there where this isn't the case and the script often is installed standalone without the rest of the repository...

For a good solution I'd need to somehow package the example files inside the main script. I'm working on splitting dehydrated into multiple source files, making it easier to work on it, with a script bundling everything back together into one big script. As part of that "build" script I could add the example files with escaped newlines to the script... mh...

lukas2511 avatar Oct 31 '21 19:10 lukas2511

tbh if you split out files anyway i would use /usr/share/dehydrated/ for code and /usr/share/dehydrated/skeleton/ for the base config and not merge the files into one big script anymore.

darix avatar Nov 09 '21 13:11 darix

No, dehydrated will still be delivered as a single shell-script, but it will be constructed from multiple parts just to make it easier to work on. Super simple build system, maybe even just a cat * > ../dehydrated :D

lukas2511 avatar Nov 16 '21 01:11 lukas2511