summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJoerg Jaspert <joerg@debian.org>2008-11-08 10:30:25 +0100
committerJoerg Jaspert <joerg@debian.org>2008-11-08 10:30:25 +0100
commit054d747167dfd1cc344fb0f597e5e46506846bff (patch)
tree64fac19c79a6cd98f6d73f51152c82d975bb1462 /bin
parent0c90332cc65aa95b64000ea628180617523d8e25 (diff)
Use hostname -s for the mailto comparison
Signed-off-by: Joerg Jaspert <joerg@debian.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ftpsync2
1 files changed, 1 insertions, 1 deletions
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