mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-07-07 05:25:14 +02:00
added note about newline encoded in accounts directory hashes (resolves #730)
This commit is contained in:
@@ -232,6 +232,10 @@ load_config() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Create new account directory or symlink to account directory from old CA
|
# Create new account directory or symlink to account directory from old CA
|
||||||
|
# dev note: keep in mind that because of the use of 'echo' instead of 'printf' or
|
||||||
|
# similar there is a newline encoded in the directory name. not going to fix this
|
||||||
|
# since it's a non-issue and trying to fix existing installations would be too much
|
||||||
|
# trouble
|
||||||
CAHASH="$(echo "${CA}" | urlbase64)"
|
CAHASH="$(echo "${CA}" | urlbase64)"
|
||||||
[[ -z "${ACCOUNTDIR}" ]] && ACCOUNTDIR="${BASEDIR}/accounts"
|
[[ -z "${ACCOUNTDIR}" ]] && ACCOUNTDIR="${BASEDIR}/accounts"
|
||||||
if [[ ! -e "${ACCOUNTDIR}/${CAHASH}" ]]; then
|
if [[ ! -e "${ACCOUNTDIR}/${CAHASH}" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user