(cherry picked from commit 85158e483f11cde9e5f0a3abe4ca56144b4c0102)
@@ -762,7 +762,7 @@ fi
# Excluding packages
software=$(echo "$software" | sed -e "s/apache2.2-common//")
if [ "$nginx" = 'no' ]; then
- software=$(echo "$software" | sed -e "s/\bnginx\b/ /")
+ software=$(echo "$software" | sed -r -e 's/(\s|^)nginx(\s|$)/ /')
fi
if [ "$apache" = 'no' ]; then
software=$(echo "$software" | sed -e "s/apache2 //")