commit 62447ef
default
·
2023-04-20 16:19:12 +0000 UTC
parent 7af3afa
snac_init() now prompts for the admin_address.
1 files changed,
+7,
-0
M
utils.c
M
utils.c
+7,
-0
1@@ -140,6 +140,13 @@ int snac_init(const char *basedir)
2 }
3 }
4
5+ printf("Admin email address (optional):\n");
6+ {
7+ xs *i = xs_strip_i(xs_readline(stdin));
8+
9+ srv_config = xs_dict_set(srv_config, "admin_email", i);
10+ }
11+
12 if (mkdirx(srv_basedir) == -1) {
13 printf("ERROR: cannot create directory '%s'\n", srv_basedir);
14 return 1;