Fix not autogenerating folders
This commit is contained in:
parent
77a57d24c1
commit
ac75cf34ab
|
@ -193,6 +193,15 @@ var Server = {
|
|||
};
|
||||
|
||||
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 () {
|
||||
Server.init();
|
||||
if(!Server.cfg["debug"]) {
|
||||
|
|
Loading…
Reference in a new issue