github.com/xhghs/rclone@v1.51.1-0.20200430155106-e186a28cced8/fstest/testserver/init.d/TestWebdavNextcloud (about) 1 #!/bin/bash 2 3 set -e 4 5 NAME=nextcloud 6 USER=rclone 7 PASS=ArmorAbleMale6 8 9 . $(dirname "$0")/docker.bash 10 11 start() { 12 docker run --rm -d --name $NAME \ 13 -e "SQLITE_DATABASE=nextcloud.db" \ 14 -e "NEXTCLOUD_ADMIN_USER=rclone" \ 15 -e "NEXTCLOUD_ADMIN_PASSWORD=$PASS" \ 16 -e "NEXTCLOUD_TRUSTED_DOMAINS=*.*.*.*" \ 17 nextcloud:latest 18 19 echo type=webdav 20 echo url=http://$(docker_ip)/remote.php/webdav/ 21 echo user=$USER 22 echo pass=$(rclone obscure $PASS) 23 # the tests don't pass if we use the nextcloud features 24 # echo vendor=nextcloud 25 echo _connect=$(docker_ip):80 26 } 27 28 . $(dirname "$0")/run.bash