1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/glitchsoc_ynh.git synced 2024-09-03 19:15:59 +02:00

Update remove

This commit is contained in:
yalh76 2019-03-20 03:44:43 +01:00
parent 2c7bff77eb
commit 9d3b44450b

View file

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