Escape names in Mifos uninstall script

This commit is contained in:
Disassembler 2018-10-30 23:53:15 +01:00
parent f6c44f3d0c
commit eb27d92383
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499

View File

@ -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