Bob Mottram 7 år sedan
förälder
incheckning
aa81bb930e
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1
    1
      src/freedombone-app-tahoelafs

+ 1
- 1
src/freedombone-app-tahoelafs Visa fil

@@ -600,7 +600,7 @@ function create_tahoelafs_web {
600 600
     if [ ! -f /etc/nginx/.htpasswd-tahoelafs ]; then
601 601
         touch /etc/nginx/.htpasswd-tahoelafs
602 602
     fi
603
-    if grep "${MY_USERNAME}:" /etc/nginx/.htpasswd-tahoelafs; then
603
+    if grep -q "${MY_USERNAME}:" /etc/nginx/.htpasswd-tahoelafs; then
604 604
         sed -i '/${MY_USERNAME}:/d' /etc/nginx/.htpasswd-tahoelafs
605 605
     fi
606 606
     echo "${TAHOELAFS_ADMIN_PASSWORD}" | htpasswd -i -s /etc/nginx/.htpasswd-tahoelafs ${MY_USERNAME}