samba.sh derp in patern match
This commit is contained in:
parent
229eaceafb
commit
301f9eb78c
2
samba.sh
2
samba.sh
@ -104,7 +104,7 @@ shift $(( OPTIND - 1 ))
|
||||
|
||||
[[ "${TIMEZONE:-""}" ]] && timezone "$TIMEZONE"
|
||||
|
||||
if ps -ef | grep -q smbd; then
|
||||
if ps -ef | egrep -v grep | grep -q smbd; then
|
||||
echo "Service already running, please restart container to apply changes"
|
||||
elif [[ $# -ge 1 && -x $(which $1 2>&-) ]]; then
|
||||
exec "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user