1
0
Fork 0
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:
yalh76 2019-02-25 23:15:24 +01:00
parent 128a7fd5bf
commit b3eca428ce

View file

@ -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
#=================================================