Dockerfile / samba.sh fix #251 the group being used was wrong
This commit is contained in:
parent
d6a94ae276
commit
a3308732d3
@ -24,7 +24,7 @@ RUN apk --no-cache --no-progress upgrade && \
|
|||||||
echo ' directory mask = 0775' >>$file && \
|
echo ' directory mask = 0775' >>$file && \
|
||||||
echo ' force directory mode = 0775' >>$file && \
|
echo ' force directory mode = 0775' >>$file && \
|
||||||
echo ' force user = smbuser' >>$file && \
|
echo ' force user = smbuser' >>$file && \
|
||||||
echo ' force group = users' >>$file && \
|
echo ' force group = smb' >>$file && \
|
||||||
echo ' follow symlinks = yes' >>$file && \
|
echo ' follow symlinks = yes' >>$file && \
|
||||||
echo ' load printers = no' >>$file && \
|
echo ' load printers = no' >>$file && \
|
||||||
echo ' printing = bsd' >>$file && \
|
echo ' printing = bsd' >>$file && \
|
||||||
|
@ -25,7 +25,7 @@ RUN apk --no-cache --no-progress upgrade && \
|
|||||||
echo ' directory mask = 0775' >>$file && \
|
echo ' directory mask = 0775' >>$file && \
|
||||||
echo ' force directory mode = 0775' >>$file && \
|
echo ' force directory mode = 0775' >>$file && \
|
||||||
echo ' force user = smbuser' >>$file && \
|
echo ' force user = smbuser' >>$file && \
|
||||||
echo ' force group = users' >>$file && \
|
echo ' force group = smb' >>$file && \
|
||||||
echo ' follow symlinks = yes' >>$file && \
|
echo ' follow symlinks = yes' >>$file && \
|
||||||
echo ' load printers = no' >>$file && \
|
echo ' load printers = no' >>$file && \
|
||||||
echo ' printing = bsd' >>$file && \
|
echo ' printing = bsd' >>$file && \
|
||||||
|
@ -25,7 +25,7 @@ RUN apk --no-cache --no-progress upgrade && \
|
|||||||
echo ' directory mask = 0775' >>$file && \
|
echo ' directory mask = 0775' >>$file && \
|
||||||
echo ' force directory mode = 0775' >>$file && \
|
echo ' force directory mode = 0775' >>$file && \
|
||||||
echo ' force user = smbuser' >>$file && \
|
echo ' force user = smbuser' >>$file && \
|
||||||
echo ' force group = users' >>$file && \
|
echo ' force group = smb' >>$file && \
|
||||||
echo ' follow symlinks = yes' >>$file && \
|
echo ' follow symlinks = yes' >>$file && \
|
||||||
echo ' load printers = no' >>$file && \
|
echo ' load printers = no' >>$file && \
|
||||||
echo ' printing = bsd' >>$file && \
|
echo ' printing = bsd' >>$file && \
|
||||||
|
2
samba.sh
2
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
|
[[ "${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
|
while getopts ":hc:g:i:nprs:Su:Ww:I:" opt; do
|
||||||
case "$opt" in
|
case "$opt" in
|
||||||
|
Loading…
Reference in New Issue
Block a user