From c3a1a4ecbea0c8df729b7a29da5d31c1f9dab9c9 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 1 Sep 2021 00:59:34 +0200 Subject: separate DB creation from plugin loading; fix misc. Debian package issues --- src/authorization/anastasis-helper-authorization-iban.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/authorization/anastasis-helper-authorization-iban.c') diff --git a/src/authorization/anastasis-helper-authorization-iban.c b/src/authorization/anastasis-helper-authorization-iban.c index 04dfa03..c6e5335 100644 --- a/src/authorization/anastasis-helper-authorization-iban.c +++ b/src/authorization/anastasis-helper-authorization-iban.c @@ -389,6 +389,16 @@ run (void *cls, global_ret = EXIT_NOTCONFIGURED; return; } + if (GNUNET_OK != + db_plugin->connect (db_plugin->cls)) + { + GNUNET_log (GNUNET_ERROR_TYPE_ERROR, + "Database not set up. Did you run anastasis-dbinit?\n"); + global_ret = EXIT_NOTCONFIGURED; + ANASTASIS_DB_plugin_unload (db_plugin); + db_plugin = NULL; + return; + } if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_string (cfg, "authorization-iban", -- cgit v1.2.3