github.com/xhghs/rclone@v1.51.1-0.20200430155106-e186a28cced8/fstest/testserver/init.d/TestWebdavOwncloud (about) 1 #!/bin/bash 2 3 set -e 4 5 NAME=owncloud 6 USER=rclone 7 PASS=HarperGrayerFewest5 8 9 . $(dirname "$0")/docker.bash 10 11 start() { 12 docker run --rm -d --name $NAME \ 13 -e "OWNCLOUD_DOMAIN=${OWNCLOUD_DOMAIN}" \ 14 -e "OWNCLOUD_DB_TYPE=sqlite" \ 15 -e "OWNCLOUD_DB_NAME=oowncloud.db" \ 16 -e "OWNCLOUD_ADMIN_USERNAME=$USER" \ 17 -e "OWNCLOUD_ADMIN_PASSWORD=$PASS" \ 18 -e "OWNCLOUD_MYSQL_UTF8MB4=true" \ 19 -e "OWNCLOUD_REDIS_ENABLED=false" \ 20 -e "OWNCLOUD_TRUSTED_DOMAINS=*.*.*.*" \ 21 owncloud/server 22 23 echo type=webdav 24 echo url=http://$(docker_ip):8080/remote.php/webdav/ 25 echo user=$USER 26 echo pass=$(rclone obscure $PASS) 27 echo vendor=owncloud 28 echo _connect=$(docker_ip):8080 29 } 30 31 . $(dirname "$0")/run.bash