Fix db names in ODK Build uninstall script

This commit is contained in:
Disassembler 2018-10-31 07:29:35 +01:00
parent b772f92c22
commit 6111325402
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499

View File

@ -8,7 +8,7 @@ rc-update -u
# Drop database and user
[ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1
echo 'DROP DATABASE opendatakit-build; DROP ROLE opendatakit-build;' | lxc-attach -u 5432 -g 5432 postgres -- psql
echo 'DROP DATABASE opendatakitbuild; DROP ROLE opendatakitbuild;' | lxc-attach -u 5432 -g 5432 postgres -- psql
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
exit 0