mirror of
https://github.com/rclone/rclone.git
synced 2024-12-20 02:06:15 +08:00
29 lines
527 B
Bash
Executable File
29 lines
527 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
NAME=smb
|
|
USER=rclone
|
|
PASS=GNF3Cqeu
|
|
WORKGROUP=thepub
|
|
|
|
. $(dirname "$0")/docker.bash
|
|
|
|
start() {
|
|
docker run --rm -d --name $NAME dperson/samba \
|
|
-p \
|
|
-u "rclone;${PASS}" \
|
|
-w "${WORKGROUP}" \
|
|
-s "public;/share" \
|
|
-s "rclone;/rclone;yes;no;no;rclone"
|
|
|
|
echo type=smb
|
|
echo host=$(docker_ip)
|
|
echo user=$USER
|
|
echo pass=$(rclone obscure $PASS)
|
|
echo domain=$WORKGROUP
|
|
echo _connect=$(docker_ip):139
|
|
}
|
|
|
|
. $(dirname "$0")/run.bash
|