From 5231790bbedd0118ad995fe58fbded55113bb233 Mon Sep 17 00:00:00 2001 From: Whitestrake Date: Fri, 6 Oct 2017 11:13:27 +1000 Subject: [PATCH] Fix groupmod editing incorrect user --- samba.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samba.sh b/samba.sh index 2198efc..b30eb24 100755 --- a/samba.sh +++ b/samba.sh @@ -198,7 +198,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 smbuser while getopts ":hc:i:nprs:St:u:Ww:" opt; do case "$opt" in @@ -238,4 +238,4 @@ elif ps -ef | egrep -v grep | grep -q smbd; then else [[ ${NMBD:-""} ]] && ionice -c 3 nmbd -D exec ionice -c 3 smbd -FS