~ubuntu-branches/ubuntu/trusty/rsync/trusty

« back to all changes in this revision

Viewing changes to rsync-ssl.in

  • Committer: Package Import Robot
  • Author(s): Paul Slootman
  • Date: 2013-10-27 12:01:10 UTC
  • mfrom: (1.3.2)
  • mto: This revision was merged to the branch mainline in revision 34.
  • Revision ID: package-import@ubuntu.com-20131027120110-eyksys8yzm1siekf
Tags: upstream-3.1.0
ImportĀ upstreamĀ versionĀ 3.1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
# This script supports using stunnel to secure an rsync daemon connection.
 
3
# Note that this requires at least version 4.x of stunnel.
 
4
case "$@" in
 
5
*rsync://*) ;;
 
6
*::*) ;;
 
7
*)
 
8
    echo "You must use rsync-ssl with a daemon-style hostname." 0>&1
 
9
    exit 1
 
10
    ;;
 
11
esac
 
12
exec @bindir@/rsync --rsh=@bindir@/stunnel-rsync "${@}"