updated mariadb version
All checks were successful
continuous-integration/drone/tag Build is passing

This commit is contained in:
2023-06-06 14:35:06 +02:00
parent f3c1f54efc
commit 7a5317012d
6 changed files with 61 additions and 348 deletions

36
docker-entrypoint-new.sh Executable file
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