rclone/fstest/testserver/init.d/TestWebdavRclone
Florian Klink aed77a8fb2 tree-wide: replace /bin/bash with /usr/bin/env bash
The latter is more portable, while the former only works on systems
where /bin/bash exists (or is symlinked appropriately).
2024-06-11 12:47:47 +01:00

22 lines
421 B
Bash
Executable file

#!/usr/bin/env bash
set -e
NAME=rclone-serve-webdav
USER=rclone
PASS=PagansSwimExpiry9
IP=127.0.0.1
PORT=28620
start() {
run rclone serve webdav --user $USER --pass $PASS --addr ${IP}:${PORT} ${DATADIR}
echo type=webdav
echo vendor=rclone
echo url=http://${IP}:${PORT}/
echo user=$USER
echo pass=$(rclone obscure $PASS)
echo _connect=${IP}:$PORT
}
. $(dirname "$0")/rclone-serve.bash