diff --git a/.docker/init.sh b/.docker/init.sh index 65d0ba4..9eed9fc 100644 --- a/.docker/init.sh +++ b/.docker/init.sh @@ -51,6 +51,7 @@ elif [ "$ULOGGER_DB_DRIVER" = "sqlite" ]; then sqlite3 -line /data/sqlite/ulogger.db "INSERT INTO users (login, password, admin) VALUES ('${ULOGGER_ADMIN_USER}', '\$2y\$10\$7OvZrKgonVZM9lkzrTbiou.CVhO3HjPk5y0W9L68fVwPs/osBRIMq', 1)" sed -i "s/^\$dbdsn = .*$/\$dbdsn = \"sqlite:\/data\/sqlite\/ulogger.db\";/" /var/www/html/config.php else + sed -i "s|.*skip-networking.*|#skip-networking|g" /etc/my.cnf.d/mariadb-server.cnf mkdir -p /run/mysqld /data/mysql chown mysql:mysql /run/mysqld /data/mysql mysql_install_db --user=mysql --datadir=/data/mysql diff --git a/Dockerfile b/Dockerfile index 92804b9..15fc830 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM alpine:3.8 +FROM alpine:3.13 LABEL maintainer="Bartek Fabiszewski (https://github.com/bfabiszewski)"