snac_init() now prompts for the admin_address.

This commit is contained in:
default 2023-04-20 18:19:12 +02:00
parent 7af3afaa4b
commit 62447ef19e

View file

@ -140,6 +140,13 @@ int snac_init(const char *basedir)
} }
} }
printf("Admin email address (optional):\n");
{
xs *i = xs_strip_i(xs_readline(stdin));
srv_config = xs_dict_set(srv_config, "admin_email", i);
}
if (mkdirx(srv_basedir) == -1) { if (mkdirx(srv_basedir) == -1) {
printf("ERROR: cannot create directory '%s'\n", srv_basedir); printf("ERROR: cannot create directory '%s'\n", srv_basedir);
return 1; return 1;