Commit 09ad9053 authored by Wayne Davison's avatar Wayne Davison

If the daemon test is run as root, use a --config option.

parent da9aefa6
......@@ -45,7 +45,16 @@ cd "$scratchdir"
ln -s test-rsyncd.conf rsyncd.conf
$RSYNC -ve $SSH --rsync-path="$RSYNC" localhost::
confopt=''
case `id -u` in
0)
# Root needs to specify the config file, or it uses /etc/rsyncd.conf.
echo "Forcing --config=$conf"
confopt=" --config=$conf"
;;
esac
$RSYNC -ve $SSH --rsync-path="$RSYNC$confopt" localhost::
RSYNC_CONNECT_PROG="$RSYNC --config=$conf --daemon"
export RSYNC_CONNECT_PROG
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment