Explorar o código

Update setup-domain

Code Slicer %!s(int64=3) %!d(string=hai) anos
pai
achega
d5d33baeb3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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