Add cmdline option to create a new dehydrated config directory #545

Open
opened 2025-12-29 01:27:05 +01:00 by adam · 3 comments
Owner

Originally created by @darix on GitHub (Sep 16, 2021).

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/

Originally created by @darix on GitHub (Sep 16, 2021). 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/`
Author
Owner

@lukas2511 commented on GitHub (Oct 31, 2021):

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 commented on GitHub (Oct 31, 2021): 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...
Author
Owner

@darix commented on GitHub (Nov 9, 2021):

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 commented on GitHub (Nov 9, 2021): 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.
Author
Owner

@lukas2511 commented on GitHub (Nov 16, 2021):

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 commented on GitHub (Nov 16, 2021): 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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dehydrated#545