Implement install and update system for the bot

- LINUX OR WINDOW WSL ONLY
This commit is contained in:
Logan Cusano
2023-05-27 17:00:57 -04:00
parent 79fe542143
commit ba927bae8c
5 changed files with 88 additions and 4 deletions

View File

@@ -185,3 +185,10 @@ exports.removePreset = async (req, res) => {
});
}
/**
* Runs the updater service
*/
exports.updateClient = async (req, res) => {
await executeAsyncConsoleCommand("systemctl start RadioNodeUpdater.service");
return res.sendStatus(200);
}