Dockerfile / samba.sh fix #251 the group being used was wrong

This commit is contained in:
David Personette 2019-11-06 14:10:02 -05:00
parent d6a94ae276
commit a3308732d3
4 changed files with 4 additions and 4 deletions

View File

@ -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 && \

View File

@ -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 && \

View File

@ -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 && \

View File

@ -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