瀏覽代碼

Update sogo.auth_request.template.sh

Don't want to split hairs! Just consistency. :)
André Peters 6 年之前
父節點
當前提交
0c8f217f49
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      data/conf/nginx/templates/sogo.auth_request.template.sh

+ 2 - 3
data/conf/nginx/templates/sogo.auth_request.template.sh

@@ -1,6 +1,5 @@
-if printf "%s\n" "${ALLOW_ADMIN_EMAIL_LOGIN}" | grep -E '^([yY][eE][sS]|[yY])+$' >/dev/null; then
-    echo '
-auth_request /sogo-auth-verify;
+if [[ "${ALLOW_ADMIN_EMAIL_LOGIN}" =~ ^([yY][eE][sS]|[yY])+$ ]]; then
+    echo 'auth_request /sogo-auth-verify;
 auth_request_set $user $upstream_http_x_username;
 auth_request_set $user $upstream_http_x_username;
 proxy_set_header x-webobjects-remote-user $user;
 proxy_set_header x-webobjects-remote-user $user;
 '
 '