mirror of
https://github.com/YunoHost-Apps/onlyoffice_ynh.git
synced 2024-09-03 19:56:11 +02:00
fix remove db
This commit is contained in:
parent
128a7fd5bf
commit
b3eca428ce
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ ynh_print_info "Removing the PostgreSQL database"
|
|||
# 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_remove_db $db_name $db_name
|
||||
ynh_psql_drop_user $db_name
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue