use hostname function instead of HOSTNAME env variable

This commit is contained in:
Honza Hommer committed 2019-05-12 00:34:46 +02:00
1 parent d9ef8c1779
commit 773e1d4e05
1 file changed
+1 -1
+1 -1
View File
@@ -27,7 +27,7 @@ sendmail_send() {
SENDMAIL_FROM="${SENDMAIL_FROM:-$(_readaccountconf_mutable SENDMAIL_FROM)}"
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"
fi
_saveaccountconf_mutable SENDMAIL_FROM "$SENDMAIL_FROM"
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.