2
0
Эх сурвалжийг харах

Update sogo.auth_request.template.sh

André Peters 6 жил өмнө
parent
commit
9a9079baa5

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

@@ -1,4 +1,4 @@
-if [[ "${ALLOW_ADMIN_EMAIL_LOGIN}" =~ ^([yY][eE][sS]|[yY])+$ ]]; then
+if printf "%s\n" "${ALLOW_ADMIN_EMAIL_LOGIN}" | grep -E '^([yY][eE][sS]|[yY])+$' >/dev/null; then
     echo 'auth_request /sogo-auth-verify;
     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;