Escape names in Mifos uninstall script
This commit is contained in:
parent
f6c44f3d0c
commit
eb27d92383
@ -8,7 +8,7 @@ rc-update -u
|
|||||||
|
|
||||||
# Drop database and user
|
# Drop database and user
|
||||||
[ ! -e /run/openrc/started/mariadb ] && service mariadb start && STOP_MARIADB=1
|
[ ! -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
|
[ ! -z ${STOP_MARIADB} ] && service mariadb stop
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user