mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-09 19:50:26 +03:00
snac_init() now prompts for the admin_address.
This commit is contained in:
parent
7af3afaa4b
commit
62447ef19e
7
utils.c
7
utils.c
@ -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) {
|
||||
printf("ERROR: cannot create directory '%s'\n", srv_basedir);
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user