mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-06-16 05:02:45 +00:00
Set ACCOUNT_KEY_PATH and ACCOUNT_EMAIL in _initconf()
this enables the following one liner for initial configuration at install time, which would mean that most users would never need to touch their account.conf manually: ACCOUNT_CONF_PATH=/path/to/account.conf ACCOUNT_KEY_PATH=/path/to/account.key ACCOUNT_EMAIL=some@valid.email ./le.sh install
This commit is contained in:
parent
6cb415f57e
commit
3ac86cdec5
7
le.sh
7
le.sh
@ -1609,6 +1609,13 @@ USER_AGENT=\"le.sh client: $PROJECT\"
|
|||||||
|
|
||||||
" > $ACCOUNT_CONF_PATH
|
" > $ACCOUNT_CONF_PATH
|
||||||
fi
|
fi
|
||||||
|
if [ -n "$ACCOUNT_KEY_PATH" ]; then
|
||||||
|
_sed_i "s/^#ACCOUNT_KEY_PATH=.*$/ACCOUNT_KEY_PATH=\"${ACCOUNT_KEY_PATH//\//\\\/}\"/g" "$ACCOUNT_CONF_PATH"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -n "$ACCOUNT_EMAIL" ]; then
|
||||||
|
_sed_i "s/^#ACCOUNT_EMAIL=.*$/ACCOUNT_EMAIL=\"${ACCOUNT_EMAIL//\//\\\/}\"/g" "$ACCOUNT_CONF_PATH"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
_precheck() {
|
_precheck() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user