21 lines
479 B
Bash
Executable File
21 lines
479 B
Bash
Executable File
#! /bin/sh
|
|
|
|
image=dperson/samba
|
|
[ -f upgrade ] && podman pull $image && rm upgrade
|
|
|
|
me=$(basename $(pwd))
|
|
podman rm $me
|
|
# You gotta use host networking to get discovery gubbins
|
|
podman run \
|
|
--name $me \
|
|
--network host \
|
|
--env NMBD=enable \
|
|
--env RECYCLE=disable \
|
|
--env USERID=911 \
|
|
--env GROUPID=911 \
|
|
--env SHARE1='drive;/srv;yes;no;no' \
|
|
--env SHARE2='media;/srv/media;yes;yes;yes' \
|
|
--env-file /srv/secrets/samba-users.env \
|
|
--volume /srv:/srv \
|
|
$image
|