From 7426ff6f9caef7d4156c92660a1467b05a4c28b6 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Fri, 13 Dec 2019 21:40:27 +0100 Subject: [PATCH] Fix MifosX install script --- lxc-apps/mifosx/install.sh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/lxc-apps/mifosx/install.sh b/lxc-apps/mifosx/install.sh index 2ae8720..e9a8d1f 100755 --- a/lxc-apps/mifosx/install.sh +++ b/lxc-apps/mifosx/install.sh @@ -13,21 +13,22 @@ export MIFOSX_PWD=$(head -c 18 /dev/urandom | base64 | tr -d '+/=') service lxc-mifosx-mariadb start envsubst /srv/mifosx/mifosx_conf/context.xml +cp mifosx_conf/server.xml /srv/mifosx/mifosx_conf/server.xml +chown -R 100000:100000 /srv/mifosx/mifosx_conf + # Populate database lxc-execute mifosx -- cat /tmp/mifospltaform-tenants-first-time-install.sql | lxc-attach mifosx-mariadb -- mysql -u mysql mifosplatform-tenants envsubst /srv/mifosx/mifosx_conf/context.xml -cp mifosx_conf/server.xml /srv/mifosx/mifosx_conf/server.xml - # Populate database -service start mifosx +service lxc-mifosx start until grep -q 'org.apache.catalina.startup.Catalina.start Server startup' /var/log/lxc/mifosx.log; do sleep 1 done -service stop mifosx +service lxc-mifosx stop # Fix missing previous_run_status column echo 'ALTER TABLE `scheduled_email_campaign` ADD `previous_run_status` VARCHAR(10) NULL;' | lxc-attach mifosx-mariadb -- mysql -u mysql mifostenant-default