Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
773e1d4e
Unverified
Commit
773e1d4e
authored
May 12, 2019
by
Honza Hommer
Browse files
use hostname function instead of HOSTNAME env variable
parent
d9ef8c17
Changes
1
Hide whitespace changes
Inline
Side-by-side
notify/sendmail.sh
View file @
773e1d4e
...
@@ -27,7 +27,7 @@ sendmail_send() {
...
@@ -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
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment