Bläddra i källkod

International login text

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

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

@@ -582,6 +582,7 @@ function create_tahoelafs_web {
582 582
     if [ ! -d /var/www/tahoelafs/htdocs ]; then
583 583
         mkdir -p /var/www/tahoelafs/htdocs
584 584
     fi
585
+    TAHOELAFS_LOGIN_TEXT=$'Tahoe-LAFS login'
585 586
 
586 587
     tahoelafs_nginx_site=/etc/nginx/sites-available/tahoelafs
587 588
     echo 'server {' > $tahoelafs_nginx_site
@@ -599,7 +600,7 @@ function create_tahoelafs_web {
599 600
     echo "  root /var/www/tahoelafs/htdocs;" >> $tahoelafs_nginx_site
600 601
     echo '' >> $tahoelafs_nginx_site
601 602
     echo '  location / {' >> $tahoelafs_nginx_site
602
-    echo '    auth_basic $"Tahoe-LAFS login";' >> $tahoelafs_nginx_site
603
+    echo "    auth_basic \"${TAHOELAFS_LOGIN_TEXT}\";" >> $tahoelafs_nginx_site
603 604
     echo '    auth_basic_user_file /etc/nginx/.htpasswd-tahoelafs;' >> $tahoelafs_nginx_site
604 605
     function_check nginx_limits
605 606
     nginx_limits tahoelafs '15m'