Browse Source

Update setup-domain

Code Slicer 3 năm trước cách đây
mục cha
commit
d5d33baeb3
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      compose/bin/setup-domain

+ 1 - 1
compose/bin/setup-domain

@@ -5,7 +5,7 @@ set -o errexit
 
 DOMAIN=$1
 
-if ! grep -q $DOMAIN /etc/hosts; then
+if ! grep -q "$DOMAIN" /etc/hosts; then
     echo "Your system password is needed to add an entry to /etc/hosts..."
     echo "127.0.0.1 ::1 $DOMAIN" | sudo tee -a /etc/hosts
 fi