made the thingy do things when restart

This commit is contained in:
Expand-sys 2021-06-15 18:30:05 +10:00
parent d4c1e9c106
commit 4ab1e823b7
2 changed files with 4 additions and 0 deletions

2
.gitignore vendored
View file

@ -22,3 +22,5 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*
tmp

View file

@ -204,6 +204,8 @@ router.post("/changebackend", checkAdmin, async function (req, res) {
process.env.MONGO +
"\nSETUP=true"
);
fs.mkdirSync("tmp");
fs.writeFileSync("tmp/restart.txt", "");
res.redirect("../");
});