diff options
author | default <nobody@localhost> | 2023-04-20 18:19:12 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2023-04-20 18:19:12 +0200 |
commit | 62447ef19eb4d17ec26d74c3841fe2e12e16f560 (patch) | |
tree | 86848794a8bdb2931dbaed7f1639ad6802304fdd /utils.c | |
parent | 7af3afaa4b6ce822d8976b235fd6d96fdae440d7 (diff) |
snac_init() now prompts for the admin_address.
Diffstat (limited to 'utils.c')
-rw-r--r-- | utils.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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; |