Comments (4)
This is related to #109.
I think it's best trying to get this script somewhat posix compliant as this way it should work in quite a lot of shells.
from dehydrated.
Initial zsh compatiblity was added in da2eeda.
Will continue working on compatibility with some other shells.
I think busybox ash (as you suggest) would be a good next target so this script works on embedded systems with openwrt, angstrom, alpine, etc.
from dehydrated.
I just had a look at busybox ash and I don't think porting this script is worth it.
Ash really lacks a lot of features, which would require a ton of workarounds....
I'm closing this ticket now since there already is support for at least one other shell (zsh), and I guess it would work in some others too.
If there are (minor) issues with other shells there should be new tickets created instead of adding to this.
from dehydrated.
i was testing the script under busybox.
i dont see too much problems fixing it for POSIX (so working in every shell):
e.g. these calls (there are a lot of)
csr64="$( <<<"${csr}" openssl req -outform DER | urlbase64)"
can be converted to:
csr64="$( echo "${csr}" | openssl req -outform DER | urlbase64)"
another thing are:
[[ var =~ (foo|bar)$ ]] || ...
which can be written as:
case "$var" in
*foo|*bar);;
*) ... ;;
esac
another things are arrays, e.g. ${deploy_args[@]} where we can make a small function
from dehydrated.
Related Issues (20)
- `hexdump` is a linux only tool HOT 3
- Incorrect validation certificate for tls-alpn-01 challenge HOT 4
- Failing with error "/usr/bin/env: ‘bash\\r’: No such file or directory" HOT 1
- OVH hooks in bash
- Preserve cert alias case
- The problem of getting a certificate from staging mode HOT 1
- Will dehydrated be broken after Sep 30th, 2024? HOT 1
- Selfhost.(de|eu) hook
- need help configuring things that the docs don't mention HOT 1
- Phase in key rollover
- Respect domain-specific hooks when using dns-01 challenge type HOT 1
- init config file
- Dehydrated gets confused by openssl req -verify output. HOT 3
- Do I need to define all hook functions? HOT 2
- E-Mail from buypass informing about changes, dehydrated stopped working immediately HOT 1
- New Hook for Rcode0 - DNS Automation
- Self-Signed revoke documented but not working
- Option to disable `registration_info.json` backups when running `--account`
- DNS challenges seem to be doubled - is this expected behavior? HOT 2
- Help! Error: Received certificate which is not self-signed. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dehydrated.