mirror of
https://github.com/rclone/rclone.git
synced 2024-12-23 15:38:57 +01:00
0f8d3fe6a3
Co-authored-by: Thibault Coupin <thibault.coupin@gmail.com> Co-authored-by: Nick Craig-Wood <nick@craig-wood.com>
28 lines
605 B
Bash
Executable File
28 lines
605 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
NAME=nextcloud
|
|
USER=rclone
|
|
PASS=ArmorAbleMale6
|
|
|
|
. $(dirname "$0")/docker.bash
|
|
|
|
start() {
|
|
docker run --rm -d --name $NAME \
|
|
-e "SQLITE_DATABASE=nextcloud.db" \
|
|
-e "NEXTCLOUD_ADMIN_USER=rclone" \
|
|
-e "NEXTCLOUD_ADMIN_PASSWORD=$PASS" \
|
|
-e "NEXTCLOUD_TRUSTED_DOMAINS=*.*.*.*" \
|
|
nextcloud:latest
|
|
|
|
echo type=webdav
|
|
echo url=http://$(docker_ip)/remote.php/dav/files/$USER/
|
|
echo user=$USER
|
|
echo pass=$(rclone obscure $PASS)
|
|
echo vendor=nextcloud
|
|
echo _connect=$(docker_ip):80
|
|
}
|
|
|
|
. $(dirname "$0")/run.bash
|