mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-23 16:23:12 +09:00
housekeeping
This commit is contained in:
1 parent
cdddfe6e30
commit
227ac87018
1 file changed
+2
-5
@@ -220,7 +220,8 @@ if (!command || command == "help" || command == "--help") {
|
|||||||
read-data=__PATH__executable__/../../data\r\n\
|
read-data=__PATH__executable__/../../data\r\n\
|
||||||
write-data=__PATH__executable__/../../../instances/" + instance + "\r\n\
|
write-data=__PATH__executable__/../../../instances/" + instance + "\r\n\
|
||||||
");
|
");
|
||||||
|
|
||||||
|
// this line is probably not needed anymore but Im not gonna remove it
|
||||||
fs.copySync('sharedMods', instancedirectory + "/mods");
|
fs.copySync('sharedMods', instancedirectory + "/mods");
|
||||||
let instconf = {
|
let instconf = {
|
||||||
"factorioPort": process.env.FACTORIOPORT | Math.floor(Math.random() * 65535),
|
"factorioPort": process.env.FACTORIOPORT | Math.floor(Math.random() * 65535),
|
||||||
@@ -244,7 +245,6 @@ write-data=__PATH__executable__/../../../instances/" + instance + "\r\n\
|
|||||||
"max_players": "20",
|
"max_players": "20",
|
||||||
"visibility": config.visibility,
|
"visibility": config.visibility,
|
||||||
"username": config.username,
|
"username": config.username,
|
||||||
"password": config.password,
|
|
||||||
"token": config.usertoken,
|
"token": config.usertoken,
|
||||||
"game_password": config.game_password,
|
"game_password": config.game_password,
|
||||||
"verify_user_identity": config.verify_user_identity,
|
"verify_user_identity": config.verify_user_identity,
|
||||||
@@ -284,9 +284,6 @@ write-data=__PATH__executable__/../../../instances/" + instance + "\r\n\
|
|||||||
fs.unlinkSync(instancedirectory + "/saves/" + savefiles[i]);
|
fs.unlinkSync(instancedirectory + "/saves/" + savefiles[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*setInterval(function(){
|
|
||||||
console.log(process.env);
|
|
||||||
},5000);*/
|
|
||||||
console.log("Deleting logs");
|
console.log("Deleting logs");
|
||||||
// clean old log file to avoid crash
|
// clean old log file to avoid crash
|
||||||
// file exists, delete so we don't get in trouble
|
// file exists, delete so we don't get in trouble
|
||||||
|
|||||||
Reference in new issue
Block a user