rclone/fstest/testserver/init.d/TestWebdavOwncloud
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

33 lines
853 B
Bash
Executable file

#!/usr/bin/env bash
set -e
NAME=owncloud
USER=rclone
PASS=HarperGrayerFewest5
PORT=38081
. $(dirname "$0")/docker.bash
start() {
docker run --rm -d --name $NAME \
-e "OWNCLOUD_DOMAIN=${OWNCLOUD_DOMAIN}" \
-e "OWNCLOUD_DB_TYPE=sqlite" \
-e "OWNCLOUD_DB_NAME=owncloud.db" \
-e "OWNCLOUD_ADMIN_USERNAME=$USER" \
-e "OWNCLOUD_ADMIN_PASSWORD=$PASS" \
-e "OWNCLOUD_MYSQL_UTF8MB4=true" \
-e "OWNCLOUD_REDIS_ENABLED=false" \
-e "OWNCLOUD_TRUSTED_DOMAINS=127.0.0.1" \
-p 127.0.0.1:${PORT}:8080 \
owncloud/server
echo type=webdav
echo url=http://127.0.0.1:${PORT}/remote.php/webdav/
echo user=$USER
echo pass=$(rclone obscure $PASS)
echo vendor=owncloud
echo _connect=127.0.0.1:${PORT}
}
. $(dirname "$0")/run.bash