[SOGo] Drop deprecated sogo_update_password sql trigger if it still exists

This commit is contained in:
FreddleSpl0it 2025-09-11 11:01:50 +02:00
parent 94c1a6c4e1
commit 0d900d4fc8
No known key found for this signature in database
GPG Key ID: 00E14E7634F4BEC5
2 changed files with 5 additions and 1 deletions

View File

@ -24,6 +24,10 @@ while [[ "${DBV_NOW}" != "${DBV_NEW}" ]]; do
done
echo "DB schema is ${DBV_NOW}"
if [[ "${MASTER}" =~ ^([yY][eE][sS]|[yY])+$ ]]; then
mariadb --skip-ssl --socket=/var/run/mysqld/mysqld.sock -u ${DBUSER} -p${DBPASS} ${DBNAME} -e "DROP TRIGGER IF EXISTS sogo_update_password"
fi
# cat /dev/urandom seems to hang here occasionally and is not recommended anyway, better use openssl
RAND_PASS=$(openssl rand -base64 16 | tr -dc _A-Z-a-z-0-9)

View File

@ -200,7 +200,7 @@ services:
- phpfpm
sogo-mailcow:
image: ghcr.io/mailcow/sogo:1.134
image: ghcr.io/mailcow/sogo:1.135
environment:
- DBNAME=${DBNAME}
- DBUSER=${DBUSER}