From 301f9eb78c6f4e128a56dee2f0dfdac8cf330a47 Mon Sep 17 00:00:00 2001 From: David Personette Date: Sat, 16 May 2015 20:10:02 -0400 Subject: [PATCH] samba.sh derp in patern match --- samba.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samba.sh b/samba.sh index 8c03c90..b105d3e 100755 --- a/samba.sh +++ b/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 "$@"