ctdlvisor: add an 'else' so it doesn't try to start citserver after an import.
authorArt Cancro <ajc@citadel.org>
Tue, 1 Aug 2023 13:44:50 +0000 (04:44 -0900)
committerArt Cancro <ajc@citadel.org>
Tue, 1 Aug 2023 13:44:50 +0000 (04:44 -0900)
ctdlvisor.c

index 9c2ad8aebde9428a8dd21f65e84a0dbe69f6e96a..7c5632abd9eb55baa8a4ffdf9cf5c81a7d40cc7e 100644 (file)
@@ -260,7 +260,7 @@ int main(int argc, char **argv) {
        }
 
        // "import mode" means we only run ctdlload
-       if (import_mode) {
+       else if (import_mode) {
                sprintf(bin, "/usr/local/citadel/ctdlload -y -h %s", CTDL_DIR);
                system(bin);
        }