make install() accept email
This commit is contained in:
parent
886776f6c9
commit
b02bf312b1
13
acme.sh
13
acme.sh
@ -6105,7 +6105,7 @@ _installalias() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# nocron confighome noprofile
|
# nocron confighome noprofile accountemail
|
||||||
install() {
|
install() {
|
||||||
|
|
||||||
if [ -z "$LE_WORKING_DIR" ]; then
|
if [ -z "$LE_WORKING_DIR" ]; then
|
||||||
@ -6115,6 +6115,8 @@ install() {
|
|||||||
_nocron="$1"
|
_nocron="$1"
|
||||||
_c_home="$2"
|
_c_home="$2"
|
||||||
_noprofile="$3"
|
_noprofile="$3"
|
||||||
|
_accountemail="$4"
|
||||||
|
|
||||||
if ! _initpath; then
|
if ! _initpath; then
|
||||||
_err "Install failed."
|
_err "Install failed."
|
||||||
return 1
|
return 1
|
||||||
@ -6233,6 +6235,10 @@ install() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$_accountemail" ]; then
|
||||||
|
_saveaccountconf "ACCOUNT_EMAIL" "$_accountemail"
|
||||||
|
fi
|
||||||
|
|
||||||
_info OK
|
_info OK
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -7090,7 +7096,7 @@ _process() {
|
|||||||
;;
|
;;
|
||||||
-m | --accountemail)
|
-m | --accountemail)
|
||||||
_accountemail="$2"
|
_accountemail="$2"
|
||||||
ACCOUNT_EMAIL="$_accountemail"
|
export ACCOUNT_EMAIL="$_accountemail"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
--accountkey)
|
--accountkey)
|
||||||
@ -7356,7 +7362,7 @@ _process() {
|
|||||||
fi
|
fi
|
||||||
_debug "Running cmd: ${_CMD}"
|
_debug "Running cmd: ${_CMD}"
|
||||||
case "${_CMD}" in
|
case "${_CMD}" in
|
||||||
install) install "$_nocron" "$_confighome" "$_noprofile" ;;
|
install) install "$_nocron" "$_confighome" "$_noprofile" "$_accountemail";;
|
||||||
uninstall) uninstall "$_nocron" ;;
|
uninstall) uninstall "$_nocron" ;;
|
||||||
upgrade) upgrade ;;
|
upgrade) upgrade ;;
|
||||||
issue)
|
issue)
|
||||||
@ -7469,7 +7475,6 @@ _process() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
[ -z "$1" ] && showhelp && return
|
[ -z "$1" ] && showhelp && return
|
||||||
if _startswith "$1" '-'; then _process "$@"; else "$@"; fi
|
if _startswith "$1" '-'; then _process "$@"; else "$@"; fi
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user