Small fix

This commit is contained in:
Kayou 2019-02-20 01:56:14 +01:00
parent f2a4be2992
commit a7af86832e
No known key found for this signature in database
GPG key ID: 823A2CBE071D3126

View file

@ -221,7 +221,7 @@ ynh_psql_remove_db() {
ynh_handle_getopts_args "$@"
local psql_root_password=$(sudo cat $PSQL_ROOT_PWD_FILE)
if ynh_psql_database_exists "$db_name"; then # Check if the database exists
if $(ynh_psql_database_exists "$db_name"); then # Check if the database exists
echo "Removing database $db_name" >&2
ynh_psql_drop_db $db_name # Remove the database
else