From 054d747167dfd1cc344fb0f597e5e46506846bff Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Sat, 8 Nov 2008 10:30:25 +0100 Subject: Use hostname -s for the mailto comparison Signed-off-by: Joerg Jaspert --- bin/ftpsync | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/ftpsync b/bin/ftpsync index b046437..88ce6b2 100755 --- a/bin/ftpsync +++ b/bin/ftpsync @@ -214,7 +214,7 @@ TO=${TO:-"/org/ftp.debian.org/ftp/"} PROGRAM=${PROGRAM:-"${NAME}-$(hostname -s)"} # Where to send mails about mirroring to? -if [ "x${MIRRORNAME}x" != "x${MIRRORNAME%%.debian.org}x" ]; then +if [ "x$(hostname -s)x" != "x${MIRRORNAME%%.debian.org}x" ]; then # We are not on a debian.org host MAILTO=${MAILTO:-"root"} else -- cgit v1.2.3