From 0e465b08209e92e116fb524d942fe202caf8b3b7 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Fri, 13 Dec 2019 21:28:55 +0100 Subject: [PATCH] Workaround for LXC root priv for mysql --- apk/vmmgr | 2 +- lxc-apps/mifosx/install.sh | 12 ++++++------ lxc-apps/mifosx/install/update-conf.sh | 2 +- lxc-apps/ushahidi/install.sh | 6 +++--- lxc-apps/ushahidi/install/update-conf.sh | 6 +++--- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/apk/vmmgr b/apk/vmmgr index 119636f..e05ffc1 160000 --- a/apk/vmmgr +++ b/apk/vmmgr @@ -1 +1 @@ -Subproject commit 119636f94ee6ca1c17bb9e9ffb6e924e79f8d476 +Subproject commit e05ffc194f95e9078d0bf8e9a1d2494b4a1ba3ca diff --git a/lxc-apps/mifosx/install.sh b/lxc-apps/mifosx/install.sh index c73284c..2ae8720 100755 --- a/lxc-apps/mifosx/install.sh +++ b/lxc-apps/mifosx/install.sh @@ -6,16 +6,16 @@ mkdir -p /srv/mifosx/mariadb_conf /srv/mifosx/mariadb_data chown 103306:103306 /srv/mifosx/mariadb_data cp mariadb_conf/my.cnf /srv/mifosx/mariadb_conf/my.cnf chown -R 100000:100000 /srv/mifosx/mariadb_conf -lxc-execute mifosx-mariadb -- mysql_install_db --user=mysql --datadir=/var/lib/mysql --auth-root-authentication-method=socket --skip-test-db +lxc-execute mifosx-mariadb -- mysql_install_db --user=mysql --datadir=/var/lib/mysql --auth-root-authentication-method=socket --auth-root-socket-user=mysql --skip-test-db # Create databases export MIFOSX_PWD=$(head -c 18 /dev/urandom | base64 | tr -d '+/=') service lxc-mifosx-mariadb start -envsubst