diff options
Diffstat (limited to 'utils.c')
| -rw-r--r-- | utils.c | 5 |
1 files changed, 4 insertions, 1 deletions
| @@ -79,7 +79,7 @@ const char *greeting_html = | |||
| 79 | "<p>This site is powered by <abbr title=\"Social Networks Are Crap\">snac</abbr>.</p>\n" | 79 | "<p>This site is powered by <abbr title=\"Social Networks Are Crap\">snac</abbr>.</p>\n" |
| 80 | "</body></html>\n"; | 80 | "</body></html>\n"; |
| 81 | 81 | ||
| 82 | int initdb(const char *basedir) | 82 | int snac_init(const char *basedir) |
| 83 | { | 83 | { |
| 84 | FILE *f; | 84 | FILE *f; |
| 85 | 85 | ||
| @@ -154,6 +154,9 @@ int initdb(const char *basedir) | |||
| 154 | xs *odir = xs_fmt("%s/object", srv_basedir); | 154 | xs *odir = xs_fmt("%s/object", srv_basedir); |
| 155 | mkdir(odir, 0755); | 155 | mkdir(odir, 0755); |
| 156 | 156 | ||
| 157 | xs *qdir = xs_fmt("%s/queue", srv_basedir); | ||
| 158 | mkdir(qdir, 0755); | ||
| 159 | |||
| 157 | xs *gfn = xs_fmt("%s/greeting.html", srv_basedir); | 160 | xs *gfn = xs_fmt("%s/greeting.html", srv_basedir); |
| 158 | if ((f = fopen(gfn, "w")) == NULL) { | 161 | if ((f = fopen(gfn, "w")) == NULL) { |
| 159 | printf("ERROR: cannot create '%s'\n", gfn); | 162 | printf("ERROR: cannot create '%s'\n", gfn); |