mirror of
https://github.com/rclone/rclone.git
synced 2024-11-29 03:45:25 +01:00
aed77a8fb2
The latter is more portable, while the former only works on systems where /bin/bash exists (or is symlinked appropriately).
34 lines
853 B
Bash
Executable File
34 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
|