mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 13:25:04 +00:00
snac_init() now prompts for the admin_address.
This commit is contained in:
parent
7af3afaa4b
commit
62447ef19e
1 changed files with 7 additions and 0 deletions
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) {
|
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;
|
||||||
|
|
Loading…
Reference in a new issue