From a3308732d3ca860d29fa5d8250b10ef4a00ca206 Mon Sep 17 00:00:00 2001 From: David Personette Date: Wed, 6 Nov 2019 14:10:02 -0500 Subject: [PATCH] Dockerfile / samba.sh fix #251 the group being used was wrong --- Dockerfile | 2 +- Dockerfile.aarch64 | 2 +- Dockerfile.armhf | 2 +- samba.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4791d42..b884dcf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,7 +24,7 @@ RUN apk --no-cache --no-progress upgrade && \ echo ' directory mask = 0775' >>$file && \ echo ' force directory mode = 0775' >>$file && \ echo ' force user = smbuser' >>$file && \ - echo ' force group = users' >>$file && \ + echo ' force group = smb' >>$file && \ echo ' follow symlinks = yes' >>$file && \ echo ' load printers = no' >>$file && \ echo ' printing = bsd' >>$file && \ diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 index 85c8d0e..55ee977 100644 --- a/Dockerfile.aarch64 +++ b/Dockerfile.aarch64 @@ -25,7 +25,7 @@ RUN apk --no-cache --no-progress upgrade && \ echo ' directory mask = 0775' >>$file && \ echo ' force directory mode = 0775' >>$file && \ echo ' force user = smbuser' >>$file && \ - echo ' force group = users' >>$file && \ + echo ' force group = smb' >>$file && \ echo ' follow symlinks = yes' >>$file && \ echo ' load printers = no' >>$file && \ echo ' printing = bsd' >>$file && \ diff --git a/Dockerfile.armhf b/Dockerfile.armhf index e25e360..153e4a1 100644 --- a/Dockerfile.armhf +++ b/Dockerfile.armhf @@ -25,7 +25,7 @@ RUN apk --no-cache --no-progress upgrade && \ echo ' directory mask = 0775' >>$file && \ echo ' force directory mode = 0775' >>$file && \ echo ' force user = smbuser' >>$file && \ - echo ' force group = users' >>$file && \ + echo ' force group = smb' >>$file && \ echo ' follow symlinks = yes' >>$file && \ echo ' load printers = no' >>$file && \ echo ' printing = bsd' >>$file && \ diff --git a/samba.sh b/samba.sh index a32c1b3..1e5633e 100755 --- a/samba.sh +++ b/samba.sh @@ -216,7 +216,7 @@ The 'command' (if provided and valid) will be run instead of samba } [[ "${USERID:-""}" =~ ^[0-9]+$ ]] && usermod -u $USERID -o smbuser -[[ "${GROUPID:-""}" =~ ^[0-9]+$ ]] && groupmod -g $GROUPID -o users +[[ "${GROUPID:-""}" =~ ^[0-9]+$ ]] && groupmod -g $GROUPID -o smb while getopts ":hc:g:i:nprs:Su:Ww:I:" opt; do case "$opt" in