mirror of
https://github.com/rclone/rclone.git
synced 2024-12-19 17:34:05 +08:00
45e8bea8d0
Before this change the tests were run against the previous stable rclone/rclone docker image. This unfortunately masked errors in the integration test server. This change uses the currently installed rclone to run "rclone serve ftp" etc. This is installed out of the current code by the integration test server so will make a better test.
23 lines
393 B
Bash
Executable File
23 lines
393 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
NAME=rclone-serve-sftp
|
|
USER=rclone
|
|
PASS=CranesBallotDorsey5
|
|
IP=127.0.0.1
|
|
PORT=28621
|
|
|
|
start() {
|
|
run rclone serve sftp --user $USER --pass $PASS --addr ${IP}:${PORT} ${DATADIR}
|
|
|
|
echo type=sftp
|
|
echo host=${IP}
|
|
echo port=$PORT
|
|
echo user=$USER
|
|
echo pass=$(rclone obscure $PASS)
|
|
echo _connect=${IP}:${PORT}
|
|
}
|
|
|
|
. $(dirname "$0")/rclone-serve.bash
|