mirror of
https://github.com/YunoHost-Apps/mastodon_ynh.git
synced 2024-09-03 19:46:02 +02:00
Update remove
This commit is contained in:
parent
2c7bff77eb
commit
9d3b44450b
1 changed files with 3 additions and 0 deletions
|
@ -60,6 +60,9 @@ ynh_remove_systemd_config "$app-streaming"
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_print_info "Removing the PostgreSQL database"
|
ynh_print_info "Removing the PostgreSQL database"
|
||||||
|
|
||||||
|
ynh_psql_execute_as_root "\connect $db_name
|
||||||
|
SELECT pg_terminate_backend (pg_stat_activity.pid) FROM pg_stat_activity WHERE pg_stat_activity.datname = '$db_name';"
|
||||||
|
|
||||||
# delete postgresql database & user
|
# delete postgresql database & user
|
||||||
ynh_psql_remove_db $db_name $db_name
|
ynh_psql_remove_db $db_name $db_name
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue