mirror of http://galexander.org/git/simplesshd.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
334 B
13 lines
334 B
#!/bin/bash
|
|
# This script supports using stunnel to secure an rsync daemon connection.
|
|
# Note that this requires at least version 4.x of stunnel.
|
|
case "$@" in
|
|
*rsync://*) ;;
|
|
*::*) ;;
|
|
*)
|
|
echo "You must use rsync-ssl with a daemon-style hostname." 0>&1
|
|
exit 1
|
|
;;
|
|
esac
|
|
exec @bindir@/rsync --rsh=@bindir@/stunnel-rsync "${@}"
|