2023-12-28 10:07:43 -07:00
|
|
|
#! /bin/sh
|
2024-11-28 13:36:19 -07:00
|
|
|
|
|
|
|
image=dperson/samba
|
|
|
|
[ -f upgrade ] && podman pull $image && rm upgrade
|
|
|
|
|
2023-12-28 10:07:43 -07:00
|
|
|
me=$(basename $(pwd))
|
|
|
|
podman rm $me
|
2024-11-28 13:34:56 -07:00
|
|
|
# You gotta use host networking to get discovery gubbins
|
2023-12-28 10:07:43 -07:00
|
|
|
podman run \
|
|
|
|
--name $me \
|
2024-11-28 13:34:56 -07:00
|
|
|
--network host \
|
2023-12-28 10:07:43 -07:00
|
|
|
--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 \
|
2024-11-28 13:36:19 -07:00
|
|
|
$image
|