mirror of
https://github.com/Expand-sys/ccashfrontend
synced 2026-03-22 04:27:15 +11:00
made the thingy do things when restart
This commit is contained in:
parent
d4c1e9c106
commit
4ab1e823b7
2 changed files with 4 additions and 0 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -22,3 +22,5 @@
|
||||||
npm-debug.log*
|
npm-debug.log*
|
||||||
yarn-debug.log*
|
yarn-debug.log*
|
||||||
yarn-error.log*
|
yarn-error.log*
|
||||||
|
|
||||||
|
tmp
|
||||||
|
|
|
||||||
|
|
@ -204,6 +204,8 @@ router.post("/changebackend", checkAdmin, async function (req, res) {
|
||||||
process.env.MONGO +
|
process.env.MONGO +
|
||||||
"\nSETUP=true"
|
"\nSETUP=true"
|
||||||
);
|
);
|
||||||
|
fs.mkdirSync("tmp");
|
||||||
|
fs.writeFileSync("tmp/restart.txt", "");
|
||||||
res.redirect("../");
|
res.redirect("../");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue