2019-10-04 23:51:07 +08:00
|
|
|
#!/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
|
2022-05-20 17:06:55 +08:00
|
|
|
echo url=http://$(docker_ip)/remote.php/dav/files/$USER/
|
2019-10-04 23:51:07 +08:00
|
|
|
echo user=$USER
|
|
|
|
echo pass=$(rclone obscure $PASS)
|
2022-05-20 17:06:55 +08:00
|
|
|
echo vendor=nextcloud
|
2019-10-04 23:51:07 +08:00
|
|
|
echo _connect=$(docker_ip):80
|
|
|
|
}
|
|
|
|
|
|
|
|
. $(dirname "$0")/run.bash
|