samba.sh fix #252
This commit is contained in:
parent
64db87725f
commit
f4f12a653a
@ -64,7 +64,7 @@ COPY samba.sh /usr/bin/
|
||||
EXPOSE 137/udp 138/udp 139 445
|
||||
|
||||
HEALTHCHECK --interval=60s --timeout=15s \
|
||||
CMD smbclient -L '\\localhost' -U '%' -m SMB3
|
||||
CMD smbclient -L \\localhost -U % -m SMB3
|
||||
|
||||
VOLUME ["/etc", "/var/cache/samba", "/var/lib/samba", "/var/log/samba",\
|
||||
"/run/samba"]
|
||||
|
@ -65,7 +65,7 @@ COPY samba.sh /usr/bin/
|
||||
EXPOSE 137/udp 138/udp 139 445
|
||||
|
||||
HEALTHCHECK --interval=60s --timeout=15s \
|
||||
CMD smbclient -L '\\localhost' -U '%' -m SMB3
|
||||
CMD smbclient -L \\localhost -U % -m SMB3
|
||||
|
||||
VOLUME ["/etc", "/var/cache/samba", "/var/lib/samba", "/var/log/samba",\
|
||||
"/run/samba"]
|
||||
|
@ -65,7 +65,7 @@ COPY samba.sh /usr/bin/
|
||||
EXPOSE 137/udp 138/udp 139 445
|
||||
|
||||
HEALTHCHECK --interval=60s --timeout=15s \
|
||||
CMD smbclient -L '\\localhost' -U '%' -m SMB3
|
||||
CMD smbclient -L \\localhost -U % -m SMB3
|
||||
|
||||
VOLUME ["/etc", "/var/cache/samba", "/var/lib/samba", "/var/log/samba",\
|
||||
"/run/samba"]
|
||||
|
2
samba.sh
2
samba.sh
@ -105,10 +105,12 @@ share() { local share="$1" path="$2" browsable="${3:-yes}" ro="${4:-yes}" \
|
||||
echo " browsable = $browsable" >>$file
|
||||
echo " read only = $ro" >>$file
|
||||
echo " guest ok = $guest" >>$file
|
||||
[[ $VETO == no ]] || {
|
||||
echo -n " veto files = /._*/.apdisk/.AppleDouble/.DS_Store/" >>$file
|
||||
echo -n ".TemporaryItems/.Trashes/desktop.ini/ehthumbs.db/" >>$file
|
||||
echo "Network Trash Folder/Temporary Items/Thumbs.db/" >>$file
|
||||
echo " delete veto files = yes" >>$file
|
||||
}
|
||||
[[ ${users:-""} && ! ${users:-""} == all ]] &&
|
||||
echo " valid users = $(tr ',' ' ' <<< $users)" >>$file
|
||||
[[ ${admins:-""} && ! ${admins:-""} =~ none ]] &&
|
||||
|
Loading…
Reference in New Issue
Block a user