mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-22 13:11:41 +00:00
use hostname function instead of HOSTNAME env variable
This commit is contained in:
parent
d9ef8c1779
commit
773e1d4e05
@ -27,7 +27,7 @@ sendmail_send() {
|
|||||||
|
|
||||||
SENDMAIL_FROM="${SENDMAIL_FROM:-$(_readaccountconf_mutable SENDMAIL_FROM)}"
|
SENDMAIL_FROM="${SENDMAIL_FROM:-$(_readaccountconf_mutable SENDMAIL_FROM)}"
|
||||||
if [ -z "$SENDMAIL_FROM" ]; then
|
if [ -z "$SENDMAIL_FROM" ]; then
|
||||||
SENDMAIL_FROM="$USER@$HOSTNAME"
|
SENDMAIL_FROM="$USER@$(hostname -f)"
|
||||||
_info "The SENDMAIL_FROM is not set, so use the default value: $SENDMAIL_FROM"
|
_info "The SENDMAIL_FROM is not set, so use the default value: $SENDMAIL_FROM"
|
||||||
fi
|
fi
|
||||||
_saveaccountconf_mutable SENDMAIL_FROM "$SENDMAIL_FROM"
|
_saveaccountconf_mutable SENDMAIL_FROM "$SENDMAIL_FROM"
|
||||||
|
Loading…
Reference in New Issue
Block a user