From dadda1c175830f19e6ff0e539b19fd137b6d3971 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Wed, 18 Mar 2020 22:54:40 +0100 Subject: [PATCH] MySQL socket auth tries to be funny, so run init as root --- apk/spoc | 2 +- lxc-apps/mifosx/install.sh | 12 ++++++------ lxc-services/mariadb/image | 8 +++++--- .../mariadb/image.d/etc/services.d/.s6-svscan/finish | 3 +++ .../mariadb/image.d/etc/services.d/mysqld/run | 5 +++++ 5 files changed, 20 insertions(+), 10 deletions(-) create mode 100755 lxc-services/mariadb/image.d/etc/services.d/.s6-svscan/finish create mode 100755 lxc-services/mariadb/image.d/etc/services.d/mysqld/run diff --git a/apk/spoc b/apk/spoc index fc42131..44c1a86 160000 --- a/apk/spoc +++ b/apk/spoc @@ -1 +1 @@ -Subproject commit fc42131bb6acaa9d474930add14f9e7fdf055bf5 +Subproject commit 44c1a8638d651a55e558ca9d97cd2222a367eeac diff --git a/lxc-apps/mifosx/install.sh b/lxc-apps/mifosx/install.sh index fdc3baa..83eadb2 100755 --- a/lxc-apps/mifosx/install.sh +++ b/lxc-apps/mifosx/install.sh @@ -10,12 +10,12 @@ MIFOSX_CONF="${VOLUMES_DIR}/mifosx/mifosx_conf" install -o 100000 -g 100000 -m 755 -d ${MARIADB_CONF} install -o 103306 -g 103306 -m 750 -d ${MARIADB_DATA} install -o 100000 -g 100000 -m 644 mariadb_conf/my.cnf ${MARIADB_CONF}/my.cnf -spoc-container exec -u 0 -g 0 mifosx-mariadb -- mysql_install_db --user=mysql --datadir=/var/lib/mysql --auth-root-authentication-method=socket --skip-test-db +spoc-container exec mifosx-mariadb -- mysql_install_db --user=mysql --datadir=/var/lib/mysql --auth-root-authentication-method=socket --skip-test-db # Create databases export MIFOSX_PWD=$(head -c 18 /dev/urandom | base64 | tr -d '+/=') spoc-container start mifosx-mariadb -envsubst