Uninstall both CKAN databases
This commit is contained in:
parent
0a32d9ed9d
commit
5e4dbd6adf
@ -11,7 +11,7 @@ rc-update -u
|
|||||||
|
|
||||||
# Drop database and user
|
# Drop database and user
|
||||||
[ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1
|
[ ! -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
|
[ ! -z ${STOP_POSTGRES} ] && service postgres stop
|
||||||
|
|
||||||
# Remove redis data
|
# Remove redis data
|
||||||
|
Loading…
x
Reference in New Issue
Block a user