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