Skip to content

Commit 9eac550

Browse files
committed
Fix: nginx was always installed on ubuntu
sed match was expecting nginx to be at the beginning of the software list
1 parent aff5eb4 commit 9eac550

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

install/hst-install-debian.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ fi
723723
# Excluding packages
724724
software=$(echo "$software" | sed -e "s/apache2.2-common//")
725725
if [ "$nginx" = 'no' ]; then
726-
software=$(echo "$software" | sed -e "s/^nginx//")
726+
software=$(echo "$software" | sed -e "s/\bnginx\b/ /")
727727
fi
728728
if [ "$apache" = 'no' ]; then
729729
software=$(echo "$software" | sed -e "s/apache2 //")

install/hst-install-ubuntu.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ fi
685685
# Excluding packages
686686
software=$(echo "$software" | sed -e "s/apache2.2-common//")
687687
if [ "$nginx" = 'no' ]; then
688-
software=$(echo "$software" | sed -e "s/^nginx//")
688+
software=$(echo "$software" | sed -e "s/\bnginx\b/ /")
689689
fi
690690
if [ "$apache" = 'no' ]; then
691691
software=$(echo "$software" | sed -e "s/apache2 //")

0 commit comments

Comments
 (0)