[Nagiosplug-checkins] Allow rsyncing to local paths

Holger Weiss hweiss at users.sourceforge.net
Fri Nov 6 12:40:51 CET 2009


 Module: nagiosplug
 Branch: master
 Commit: bb06aafc5b621e9814baf7d3723440e4ef85b86d
 Author: Thomas Guyot-Sionnest <dermoth at aei.ca>
   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
 





More information about the Commits mailing list