Browse Source

[Installer] Fixed sed pattern which resulted in unexpected matches for 'nginx' (Debian)

(cherry picked from commit 85158e483f11cde9e5f0a3abe4ca56144b4c0102)
Robert Zollner 5 years ago
parent
commit
d59440433a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      install/hst-install-debian.sh

+ 1 - 1
install/hst-install-debian.sh

@@ -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 //")