Replace mkproto.pl with mkproto.awk
[rsync.git] / rsync-ssl.in
blobda58d6afac3dad09694c8e66afdbf35f2cf33c31
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
11 esac
12 exec @bindir@/rsync --rsh=@bindir@/stunnel-rsync "${@}"