[SOGo] Refresh sogo static view on start
parent
8a9ce0a57c
commit
e06c3e87ee
|
@ -42,7 +42,6 @@ while [[ ${STATIC_VIEW_OK} != 'OK' ]]; do
|
||||||
echo "Updating _sogo_static_view content..."
|
echo "Updating _sogo_static_view content..."
|
||||||
mysql --host mysql -u ${DBUSER} -p${DBPASS} ${DBNAME} -B -e "REPLACE INTO _sogo_static_view SELECT * from sogo_view"
|
mysql --host mysql -u ${DBUSER} -p${DBPASS} ${DBNAME} -B -e "REPLACE INTO _sogo_static_view SELECT * from sogo_view"
|
||||||
mysql --host mysql -u ${DBUSER} -p${DBPASS} ${DBNAME} -B -e "DELETE FROM _sogo_static_view WHERE c_uid NOT IN (SELECT username FROM mailbox WHERE active = '1'"
|
mysql --host mysql -u ${DBUSER} -p${DBPASS} ${DBNAME} -B -e "DELETE FROM _sogo_static_view WHERE c_uid NOT IN (SELECT username FROM mailbox WHERE active = '1'"
|
||||||
}
|
|
||||||
else
|
else
|
||||||
echo "Waiting for database initialization..."
|
echo "Waiting for database initialization..."
|
||||||
sleep 3
|
sleep 3
|
||||||
|
|
|
@ -146,7 +146,7 @@ services:
|
||||||
- phpfpm
|
- phpfpm
|
||||||
|
|
||||||
sogo-mailcow:
|
sogo-mailcow:
|
||||||
image: mailcow/sogo:1.26
|
image: mailcow/sogo:1.27
|
||||||
build: ./data/Dockerfiles/sogo
|
build: ./data/Dockerfiles/sogo
|
||||||
environment:
|
environment:
|
||||||
- DBNAME=${DBNAME}
|
- DBNAME=${DBNAME}
|
||||||
|
|
Loading…
Reference in New Issue