Unverified Commit 22d318a9 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

fix: Samba permissions (#1082)

parent 974d0874
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
ARG VERSION_ARG="latest"
FROM scratch AS build-amd64

COPY --from=qemux/qemu:6.19 / /
COPY --from=qemux/qemu:6.20 / /

ARG DEBCONF_NOWARNINGS="yes"
ARG DEBIAN_FRONTEND="noninteractive"
+4 −0
Original line number Diff line number Diff line
@@ -99,6 +99,10 @@ for dir in "${dirs[@]}"; do
  addShare "$dir" "$dir_name" "Shared $dir_name" || error "Failed to create shared folder for $dir!"
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
  error "Samba daemon failed to start!"
  smbd -i --debug-stdout || true