Skip to content

Commit 70eb793

Browse files
committed
[Installer] Fixed sed pattern which resulted in unexpected matches for 'nginx'
Fixes issue hestiacp#824 (cherry picked from commit 0facc01)
1 parent 07f4571 commit 70eb793

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

install/hst-install-ubuntu.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,8 @@ fi
713713
# Excluding packages
714714
software=$(echo "$software" | sed -e "s/apache2.2-common//")
715715
if [ "$nginx" = 'no' ]; then
716-
software=$(echo "$software" | sed -e "s/\bnginx\b/ /")
716+
software=$(echo "$software" | sed -r -e 's/(\s|^)nginx(\s|$)/ /')
717+
717718
fi
718719
if [ "$apache" = 'no' ]; then
719720
software=$(echo "$software" | sed -e "s/apache2 //")

0 commit comments

Comments
 (0)