rclone/fstest/testserver/init.d/TestSMB
2022-09-30 16:10:57 +01:00

28 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