1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2026-02-03 02:57:15 +00:00

[Dovecot] move sogo sso to mailcowauth.php

This commit is contained in:
FreddleSpl0it
2024-02-26 13:10:08 +01:00
parent 010d898786
commit 6928eb632e
4 changed files with 16 additions and 14 deletions

View File

@@ -200,13 +200,6 @@ EOF
# Create random master Password for SOGo SSO
RAND_PASS=$(cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 32 | head -n 1)
echo -n ${RAND_PASS} > /etc/phpfpm/sogo-sso.pass
cat <<EOF > /etc/dovecot/sogo-sso.conf
# Autogenerated by mailcow
passdb {
driver = static
args = allow_real_nets=${IPV4_NETWORK}.248/32 password={plain}${RAND_PASS}
}
EOF
if [[ "${MASTER}" =~ ^([nN][oO]|[nN])+$ ]]; then
# Toggling MASTER will result in a rebuild of containers, so the quota script will be recreated