Fix not autogenerating folders

This commit is contained in:
calzoneman 2013-07-28 19:47:13 -04:00
parent 77a57d24c1
commit ac75cf34ab
1 changed files with 9 additions and 0 deletions

View File

@ -193,6 +193,15 @@ var Server = {
}; };
Logger.syslog.log("Starting CyTube v" + VERSION); Logger.syslog.log("Starting CyTube v" + VERSION);
fs.exists("chanlogs", function (exists) {
exists || fs.mkdir("chanlogs");
});
fs.exists("chandump", function (exists) {
exists || fs.mkdir("chandump");
});
Config.load(Server, "cfg.json", function () { Config.load(Server, "cfg.json", function () {
Server.init(); Server.init();
if(!Server.cfg["debug"]) { if(!Server.cfg["debug"]) {