1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2026-02-13 07:50:39 +00:00

php: Rebase on Debian 12 (#5951)

* php: rebuild on debian 12

* Restored one build dockerfile

* cleanup Dockerfile
This commit is contained in:
Niklas Meyer
2024-07-12 09:40:10 +02:00
committed by GitHub
parent aadeeb0df3
commit 9b478b3859
3 changed files with 54 additions and 59 deletions

View File

@@ -24,6 +24,7 @@ done
CONTAINER_ID=
until [[ ! -z "${CONTAINER_ID}" ]] && [[ "${CONTAINER_ID}" =~ ^[[:alnum:]]*$ ]]; do
CONTAINER_ID=$(curl --silent --insecure https://dockerapi/containers/json | jq -r ".[] | {name: .Config.Labels[\"com.docker.compose.service\"], project: .Config.Labels[\"com.docker.compose.project\"], id: .Id}" 2> /dev/null | jq -rc "select( .name | tostring | contains(\"mysql-mailcow\")) | select( .project | tostring | contains(\"${COMPOSE_PROJECT_NAME,,}\")) | .id" 2> /dev/null)
echo "Could not get mysql-mailcow container id... trying again"
sleep 2
done
echo "MySQL @ ${CONTAINER_ID}"
@@ -197,10 +198,10 @@ fi
[[ ! -f /web/css/build/0081-custom-mailcow.css ]] && echo '/* Autogenerated by mailcow */' > /web/css/build/0081-custom-mailcow.css
# Fix permissions for global filters
chown -R 82:82 /global_sieve/*
chown -R 33:33 /global_sieve/*
# Fix permissions on twig cache folder
chown -R 82:82 /web/templates/cache
chown -R 33:33 /web/templates/cache
# Clear cache
find /web/templates/cache/* -not -name '.gitkeep' -delete