mirror of
https://github.com/YunoHost-Apps/onlyoffice_ynh.git
synced 2024-09-03 19:56:11 +02:00
Fix remove step
This commit is contained in:
parent
6473bbf0c9
commit
5b0a1b9c76
1 changed files with 2 additions and 0 deletions
|
@ -31,6 +31,8 @@ final_path=$(ynh_app_setting_get $app final_path)
|
||||||
ynh_print_info "Removing the PostgreSQL database"
|
ynh_print_info "Removing the PostgreSQL database"
|
||||||
|
|
||||||
# Remove a database if it exists, along with the associated user
|
# Remove a database if it exists, along with the associated user
|
||||||
|
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';"
|
||||||
ynh_psql_drop_db $db_name $db_name
|
ynh_psql_drop_db $db_name $db_name
|
||||||
ynh_psql_drop_user $db_name
|
ynh_psql_drop_user $db_name
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue