mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-02-26 04:14:50 +01:00
Add cmdline option to create a new dehydrated config directory #545
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 @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/@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/sharepath 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...
@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.
@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