diff options
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -34,6 +34,7 @@ int usage(const char *cmd) "httpd {basedir} Starts the HTTPD daemon\n" "purge {basedir} Purges old data\n" "state {basedir} Prints server state\n" + "fsck {basedir} Performs a non-destructive data integrity check\n" "webfinger {basedir} {account} Queries about an account (@user@host or actor url)\n" "queue {basedir} {uid} Processes a user queue\n" "follow {basedir} {uid} {actor} Follows an actor\n" @@ -200,6 +201,11 @@ int main(int argc, char *argv[]) return 0; } + if (strcmp(cmd, "fsck") == 0) { /** **/ + data_fsck(); + return 0; + } + if ((user = GET_ARGV()) == NULL) return usage(cmd); |