reorg
All checks were successful
Container Publish / on-success-skip (push) Has been skipped
Container Publish / build-image (arm64, 10.11) (push) Successful in 23s
Container Publish / build-image (arm64, 10.6) (push) Successful in 21s
Container Publish / build-image (amd64, 10.11) (push) Successful in 1m16s
Container Publish / build-image (arm64, 11.4) (push) Successful in 1m41s
Container Publish / build-image (amd64, 10.6) (push) Successful in 1m16s
Container Publish / build-image (arm64, 11.8) (push) Successful in 1m36s
Container Publish / build-image (amd64, 11.4) (push) Successful in 1m40s
Container Publish / build-image (amd64, 11.8) (push) Successful in 1m31s
Container Publish / update docker manifest (10.11) (push) Successful in 10s
Container Publish / update docker manifest (11.4) (push) Successful in 10s
Container Publish / update docker manifest (10.6) (push) Successful in 10s
Container Publish / update docker manifest (11.8) (push) Successful in 10s

This commit is contained in:
2025-09-29 21:24:46 +02:00
parent fe1dd2c711
commit 72680745ba
8 changed files with 2 additions and 7 deletions

View File

@@ -0,0 +1,36 @@
#!/bin/bash
set -eo pipefail
shopt -s nullglob
source /usr/local/bin/docker-entrypoint.sh
write_custom_config() {
SERVER_ID=${SERVER_ID:-33}
READONLY=${READONLY:-1}
cat >/etc/mysql/mariadb.conf.d/custom.cnf <<EOF
[mysqld]
server_id=${SERVER_ID}
replicate-do-db=${REPLICATE_DO_DB}
EOF
if [ "$READONLY" = "1" ] ; then
echo "read-only" >> /etc/mysql/mariadb.conf.d/custom.cnf
fi
}
start_cron() {
sudo cron -f &
}
chown_datadir() {
sudo chown -R mysql /var/lib/mysql
}
if ! _is_sourced; then
write_custom_config
chown_datadir
start_cron
_main "$@"
fi