From 9e4ad43e559ae3e2547077cbdf28362ee7b468fb Mon Sep 17 00:00:00 2001 From: root Date: Mon, 18 Nov 2024 19:44:43 +0000 Subject: [PATCH] Fixes for SSO on roundcube and gitea --- lib/gitea.sh | 2 +- lib/roundcube.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/gitea.sh b/lib/gitea.sh index 53f8cac..fea3af0 100644 --- a/lib/gitea.sh +++ b/lib/gitea.sh @@ -351,7 +351,7 @@ EOF GITEA_RETRY="0" until docker exec --user 1000 gitea gitea admin auth add-oauth --name "Authelia" --provider "openidConnect" --key "gitea" --secret "$GITEA_CLIENT_SECRET" --auto-discover-url "https://authelia.$DOMAIN/.well-known/openid-configuration" --skip-local-2fa "true" --scopes "openid email profile" --group-claim-name "groups" --admin-group "admin" --restricted-group "guest"; do - [[ "$GITEA_RETRY" -eq 30 ]] && echo "ERROR - Can't connect gitea add-oauth to authelia" && break + [[ "$GITEA_RETRY" -eq 60 ]] && echo "ERROR - Can't connect gitea add-oauth to authelia" && break echo "Retrying.." sleep 1 ((GITEA_RETRY++)) diff --git a/lib/roundcube.sh b/lib/roundcube.sh index 92e696f..8079b40 100644 --- a/lib/roundcube.sh +++ b/lib/roundcube.sh @@ -205,7 +205,7 @@ smtpd_sasl_type = dovecot smtpd_tls_auth_only = yes EOF -[[ ! -d "/federated/apps/mail/data/etc/dovecot/conf.d" ]] && mkdir /federated/apps/mail/data/etc/dovecot/conf.d +[[ ! -d "/federated/apps/mail/data/etc/dovecot/conf.d" ]] && mkdir -p /federated/apps/mail/data/etc/dovecot/conf.d cat > /federated/apps/mail/data/etc/dovecot/conf.d/95-roundcube.conf <<'EOF' service auth { unix_listener /var/spool/postfix/private/auth {