mirror of
https://github.com/rclone/rclone.git
synced 2024-12-12 18:21:57 +01:00
aed77a8fb2
The latter is more portable, while the former only works on systems where /bin/bash exists (or is symlinked appropriately).
23 lines
491 B
Bash
Executable File
23 lines
491 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
NAME=rclone-serve-s3
|
|
ACCESS_KEY_ID=rclone
|
|
SECRET_ACCESS_KEY=JoltRogueVerde5
|
|
IP=127.0.0.1
|
|
PORT=28624
|
|
|
|
start() {
|
|
run rclone serve s3 --auth-key ${ACCESS_KEY_ID},${SECRET_ACCESS_KEY} --addr ${IP}:${PORT} ${DATADIR}
|
|
|
|
echo type=s3
|
|
echo provider=Rclone
|
|
echo endpoint=http://${IP}:${PORT}/
|
|
echo access_key_id=${ACCESS_KEY_ID}
|
|
echo secret_access_key=${SECRET_ACCESS_KEY}
|
|
echo _connect=${IP}:${PORT}
|
|
}
|
|
|
|
. $(dirname "$0")/rclone-serve.bash
|