diff --git a/frontlinesms/lxcfile b/frontlinesms/lxcfile index f22132c..61f8b53 100644 --- a/frontlinesms/lxcfile +++ b/frontlinesms/lxcfile @@ -31,7 +31,7 @@ COPY lxc RUN EOF # Install Czech translation cd /srv/frontlinesms/frontlinesms2/web-app/assets/i18n - gzip < frontlinesms-core_messages_cs.js > frontlinesms-core_messages_cs.js.gz + gzip frontlinesms-core_messages_cs.js.gz MD5=$(md5sum frontlinesms-core_messages_cs.js | cut -d' ' -f1) cp frontlinesms-core_messages_cs.js frontlinesms-core_messages_cs-${MD5}.js cp frontlinesms-core_messages_cs.js.gz frontlinesms-core_messages_cs-${MD5}.js.gz diff --git a/mifosx/install.sh b/mifosx/install.sh index 80f4fa6..c7701e1 100755 --- a/mifosx/install.sh +++ b/mifosx/install.sh @@ -24,13 +24,14 @@ cp etc/init.d/mifosx /etc/init.d/mifosx rc-update -u # Populate database +>/var/log/lxc/mifosx.log service mifosx start -until grep -q 'Migrating schema `mifostenant-default` to version 5000' /var/log/lxc/mifosx.log; do +until grep -q 'org.apache.catalina.startup.Catalina.start Server startup' /var/log/lxc/mifosx.log; do sleep 1 done service mifosx stop # Fix missing previous_run_status column -echo 'ALTER TABLE `scheduled_email_campaign` ADD `previous_run_status` VARCHAR(10) NULL;' | lxc-attach mariadb -- mysql mifostenant-default +#echo 'ALTER TABLE `scheduled_email_campaign` ADD `previous_run_status` VARCHAR(10) NULL;' | lxc-attach mariadb -- mysql mifostenant-default # Update admin account export MIFOSX_ADMIN_USER=admin diff --git a/mifosx/install/schemapwd.sql b/mifosx/install/schemapwd.sql index ea8ba10..c2ff1cc 100644 --- a/mifosx/install/schemapwd.sql +++ b/mifosx/install/schemapwd.sql @@ -1 +1 @@ -UPDATE tenants SET timezone_id = "Europe/Prague", schema_server = "mariadb", schema_username = "mifosx", schema_password = "${MIFOSX_PWD}" WHERE identifier = "default"; +UPDATE `tenants` SET `timezone_id` = "Europe/Prague", `schema_server` = "mariadb", `schema_username` = "mifosx", `schema_password` = "${MIFOSX_PWD}" WHERE `identifier` = "default"; diff --git a/mifosx/lxcfile b/mifosx/lxcfile index d314023..aa3004b 100644 --- a/mifosx/lxcfile +++ b/mifosx/lxcfile @@ -4,14 +4,12 @@ LAYER shared/java LAYER shared/tomcat LAYER mifosx/mifosx -COPY lxc - RUN EOF # Install full-featured wget to work around sourceforge bugs apk --no-cache add wget # Download Mifos X - wget https://sourceforge.net/projects/mifos/files/latest/download -O /tmp/mifosx.zip + wget https://sourceforge.net/projects/mifos/files/Mifos%20X/mifosplatform-18.03.01.RELEASE.zip/download -O /tmp/mifosx.zip mkdir /srv/tomcat/webapps/fineract-provider unzip /tmp/mifosx.zip -d /tmp unzip /tmp/fineractplatform-18.03.01.RELEASE/fineract-provider.war -d /srv/tomcat/webapps/fineract-provider @@ -29,19 +27,19 @@ RUN EOF # Cleanup apk --no-cache del wget rm -rf /tmp/fineractplatform-18.03.01.RELEASE /tmp/mifosx.zip - - # Update Czech translation of community-app - wget 'https://translatewiki.net/wiki/Special:ExportTranslations?group=out-mifos&language=cs&format=export-to-file' -O /srv/tomcat/webapps/ROOT/global-translations/locale-cs.json - cd /srv/tomcat/webapps/ROOT/scripts/ - - # Apply translation patch - patch -p0