From eb27d92383e4ba52ff63c00ef8e5488c718cb866 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Tue, 30 Oct 2018 23:53:15 +0100 Subject: [PATCH] Escape names in Mifos uninstall script --- mifosx/uninstall.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mifosx/uninstall.sh b/mifosx/uninstall.sh index 8cbf94e..84fef6c 100755 --- a/mifosx/uninstall.sh +++ b/mifosx/uninstall.sh @@ -8,7 +8,7 @@ rc-update -u # Drop database and user [ ! -e /run/openrc/started/mariadb ] && service mariadb start && STOP_MARIADB=1 -echo 'DROP DATABASE mifosplatform-tenants; DROP DATABASE mifostenant-default; DROP USER mifosx;' | lxc-attach mariadb -- mysql +echo 'DROP DATABASE `mifosplatform-tenants`; DROP DATABASE `mifostenant-default`; DROP USER `mifosx`;' | lxc-attach mariadb -- mysql [ ! -z ${STOP_MARIADB} ] && service mariadb stop exit 0