Allow rsyncing to local paths

"Holger Weiss" <[email protected]>
Newsgroups gmane.network.nagios.plugins.cvs
Message-ID <[email protected]>
 Module: nagiosplug
 Branch: master
 Commit: bb06aafc5b621e9814baf7d3723440e4ef85b86d
 Author: Thomas Guyot-Sionnest <[email protected]>
   Date: Sun Oct 25 10:34:45 2009 -0400
    URL: http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug/nagiosplug;a=commit;h=bb06aaf

Allow rsyncing to local paths

---

 tools/sfsnapshot-upload |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/tools/sfsnapshot-upload b/tools/sfsnapshot-upload
index 1507cff..e0a2300 100755
--- a/tools/sfsnapshot-upload
+++ b/tools/sfsnapshot-upload
@@ -94,7 +94,8 @@ END_README
 md5sum *.gz | tee -a README > MD5SUM
 
 # Sync the files
-rsync -a --exclude=.htaccess --exclude=HEADER.html --delete "$SFSNAP_DEST/" "$OUT_SERVER:$OUT_PATH"
+[ -n "$OUT_SERVER" ] && OUT_SERVER="$OUT_SERVER:"
+rsync -a --exclude=.htaccess --exclude=HEADER.html --delete "$SFSNAP_DEST/" "$OUT_SERVER$OUT_PATH"
 
 trap - EXIT
 


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.