Browse Source

make install() accept email

pull/3385/head
neilpang 5 years ago
committed by neil
parent
commit
b02bf312b1
  1. 13
      acme.sh

13
acme.sh

@ -6105,7 +6105,7 @@ _installalias() {
}
# nocron confighome noprofile
# nocron confighome noprofile accountemail
install() {
if [ -z "$LE_WORKING_DIR" ]; then
@ -6115,6 +6115,8 @@ install() {
_nocron="$1"
_c_home="$2"
_noprofile="$3"
_accountemail="$4"
if ! _initpath; then
_err "Install failed."
return 1
@ -6233,6 +6235,10 @@ install() {
fi
fi
if [ "$_accountemail" ]; then
_saveaccountconf "ACCOUNT_EMAIL" "$_accountemail"
fi
_info OK
}
@ -7090,7 +7096,7 @@ _process() {
;;
-m | --accountemail)
_accountemail="$2"
ACCOUNT_EMAIL="$_accountemail"
export ACCOUNT_EMAIL="$_accountemail"
shift
;;
--accountkey)
@ -7356,7 +7362,7 @@ _process() {
fi
_debug "Running cmd: ${_CMD}"
case "${_CMD}" in
install) install "$_nocron" "$_confighome" "$_noprofile" ;;
install) install "$_nocron" "$_confighome" "$_noprofile" "$_accountemail";;
uninstall) uninstall "$_nocron" ;;
upgrade) upgrade ;;
issue)
@ -7469,7 +7475,6 @@ _process() {
}
main() {
[ -z "$1" ] && showhelp && return
if _startswith "$1" '-'; then _process "$@"; else "$@"; fi

Loading…
Cancel
Save