From 5e4dbd6adf465ef4f291a677bb167ec1d28b91d7 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Sun, 28 Oct 2018 08:27:36 +0100 Subject: [PATCH] Uninstall both CKAN databases --- ckan/uninstall.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckan/uninstall.sh b/ckan/uninstall.sh index 2601d2f..903ecb5 100755 --- a/ckan/uninstall.sh +++ b/ckan/uninstall.sh @@ -11,7 +11,7 @@ rc-update -u # Drop database and user [ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1 -echo 'DROP DATABASE ckan; DROP ROLE ckan;' | lxc-attach -u 5432 -g 5432 postgres -- psql +echo 'DROP DATABASE ckan; DROP DATABASE ckan_datastore; DROP ROLE ckan; DROP ROLE ckan_datastore;' | lxc-attach -u 5432 -g 5432 postgres -- psql [ ! -z ${STOP_POSTGRES} ] && service postgres stop # Remove redis data