summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorSimon Paillard <spaillard@debian.org>2009-08-17 22:10:27 +0200
committerSimon Paillard <spaillard@debian.org>2009-08-17 22:10:27 +0200
commit4d17293723e7892d6eb74439da7e223285a11442 (patch)
tree8a47f4eceff5d53a355eb678090a0e3c572a1ddb /bin
parent4f8a98b179287c8b9a78d0c978a9d6a8965a9648 (diff)
Fix debian host test (false positive if fqdn=shortname)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ftpsync2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ftpsync b/bin/ftpsync
index 1572feb..b625810 100755
--- a/bin/ftpsync
+++ b/bin/ftpsync
@@ -229,7 +229,7 @@ TO=${TO:-"/org/ftp.debian.org/ftp/"}
PROGRAM=${PROGRAM:-"${NAME}-$(hostname -s)"}
# Where to send mails about mirroring to?
-if [ "x$(hostname -s)x" != "x${MIRRORNAME%%.debian.org}x" ]; then
+if [ "x$(hostname -d)x" != "xdebian.orgx" ]; then
# We are not on a debian.org host
MAILTO=${MAILTO:-"root"}
else