2019-10-04 23:51:07 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
NAME=owncloud
|
|
|
|
USER=rclone
|
|
|
|
PASS=HarperGrayerFewest5
|
2022-12-15 19:33:31 +08:00
|
|
|
PORT=38081
|
2019-10-04 23:51:07 +08:00
|
|
|
|
|
|
|
. $(dirname "$0")/docker.bash
|
|
|
|
|
|
|
|
start() {
|
|
|
|
docker run --rm -d --name $NAME \
|
|
|
|
-e "OWNCLOUD_DOMAIN=${OWNCLOUD_DOMAIN}" \
|
|
|
|
-e "OWNCLOUD_DB_TYPE=sqlite" \
|
Spelling fixes
Fix spelling of: above, already, anonymous, associated,
authentication, bandwidth, because, between, blocks, calculate,
candidates, cautious, changelog, cleaner, clipboard, command,
completely, concurrently, considered, constructs, corrupt, current,
daemon, dependencies, deprecated, directory, dispatcher, download,
eligible, ellipsis, encrypter, endpoint, entrieslist, essentially,
existing writers, existing, expires, filesystem, flushing, frequently,
hierarchy, however, implementation, implements, inaccurate,
individually, insensitive, longer, maximum, metadata, modified,
multipart, namedirfirst, nextcloud, obscured, opened, optional,
owncloud, pacific, passphrase, password, permanently, persimmon,
positive, potato, protocol, quota, receiving, recommends, referring,
requires, revisited, satisfied, satisfies, satisfy, semver,
serialized, session, storage, strategies, stringlist, successful,
supported, surprise, temporarily, temporary, transactions, unneeded,
update, uploads, wrapped
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
2020-10-09 08:17:24 +08:00
|
|
|
-e "OWNCLOUD_DB_NAME=owncloud.db" \
|
2019-10-04 23:51:07 +08:00
|
|
|
-e "OWNCLOUD_ADMIN_USERNAME=$USER" \
|
|
|
|
-e "OWNCLOUD_ADMIN_PASSWORD=$PASS" \
|
|
|
|
-e "OWNCLOUD_MYSQL_UTF8MB4=true" \
|
|
|
|
-e "OWNCLOUD_REDIS_ENABLED=false" \
|
2022-12-15 19:33:31 +08:00
|
|
|
-e "OWNCLOUD_TRUSTED_DOMAINS=127.0.0.1" \
|
|
|
|
-p 127.0.0.1:${PORT}:8080 \
|
2019-10-04 23:51:07 +08:00
|
|
|
owncloud/server
|
|
|
|
|
|
|
|
echo type=webdav
|
2022-12-15 19:33:31 +08:00
|
|
|
echo url=http://127.0.0.1:${PORT}/remote.php/webdav/
|
2019-10-04 23:51:07 +08:00
|
|
|
echo user=$USER
|
|
|
|
echo pass=$(rclone obscure $PASS)
|
|
|
|
echo vendor=owncloud
|
2022-12-15 19:33:31 +08:00
|
|
|
echo _connect=127.0.0.1:${PORT}
|
2019-10-04 23:51:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
. $(dirname "$0")/run.bash
|