mirror of
https://github.com/dockur/windows.git
synced 2025-04-01 23:48:09 +01:00
fix: Samba permissions (#1082)
This commit is contained in:
parent
974d087466
commit
22d318a9b4
@ -1,7 +1,7 @@
|
|||||||
ARG VERSION_ARG="latest"
|
ARG VERSION_ARG="latest"
|
||||||
FROM scratch AS build-amd64
|
FROM scratch AS build-amd64
|
||||||
|
|
||||||
COPY --from=qemux/qemu:6.19 / /
|
COPY --from=qemux/qemu:6.20 / /
|
||||||
|
|
||||||
ARG DEBCONF_NOWARNINGS="yes"
|
ARG DEBCONF_NOWARNINGS="yes"
|
||||||
ARG DEBIAN_FRONTEND="noninteractive"
|
ARG DEBIAN_FRONTEND="noninteractive"
|
||||||
|
@ -99,6 +99,10 @@ for dir in "${dirs[@]}"; do
|
|||||||
addShare "$dir" "$dir_name" "Shared $dir_name" || error "Failed to create shared folder for $dir!"
|
addShare "$dir" "$dir_name" "Shared $dir_name" || error "Failed to create shared folder for $dir!"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Fix Samba permissions
|
||||||
|
[ -d /run/samba/msg.lock ] && chmod -R 0755 /run/samba/msg.lock
|
||||||
|
[ -d /var/log/samba/cores ] && chmod -R 0700 /var/log/samba/cores
|
||||||
|
|
||||||
if ! smbd; then
|
if ! smbd; then
|
||||||
error "Samba daemon failed to start!"
|
error "Samba daemon failed to start!"
|
||||||
smbd -i --debug-stdout || true
|
smbd -i --debug-stdout || true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user