mirror of
http://galexander.org/git/simplesshd.git
synced 2024-12-28 17:08:08 +00:00
d8cc8daef9
need...but most of it remains.
13 lines
334 B
Bash
Executable File
13 lines
334 B
Bash
Executable File
#!/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 "${@}"
|