Browse Source

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

Fixes issue #824

(cherry picked from commit 0facc01420efcf3bc5b7e3dcf50a5673e2d1b234)
Robert Zollner 5 năm trước cách đây
mục cha
commit
70eb793a08
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      install/hst-install-ubuntu.sh

+ 2 - 1
install/hst-install-ubuntu.sh

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