mirror of
https://github.com/rclone/rclone.git
synced 2024-12-11 09:41:47 +01:00
aed77a8fb2
The latter is more portable, while the former only works on systems where /bin/bash exists (or is symlinked appropriately).
23 lines
401 B
Bash
Executable File
23 lines
401 B
Bash
Executable File
#!/usr/bin/env 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
|