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

Fix postgresql database removal error

in new ynh_psql_remove_db db_name and db_user have been inverted in legacy mode
This commit is contained in:
yalh76 2019-04-12 02:30:36 +02:00
parent 90a0331309
commit 5e9e9ac4e4

View file

@ -66,7 +66,7 @@ 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
ynh_psql_remove_db "$db_name" "$app"
ynh_psql_remove_db --db_name="$db_name" --db_user="$app"
#=================================================
# REMOVE DEPENDENCIES