Signed-off-by: Odyssey <odyssey346@disroot.org>
This commit is contained in:
Odyssey 2023-01-07 18:21:44 +01:00
parent 032e7a6f78
commit 2880eda259
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ func main() {
})
}
// Get the number of users online
out, err := exec.Command("/usr/bin/users | /usr/bin/wc -l").Output()
out, err := exec.Command("bash", "-c", "/usr/bin/users | /usr/bin/wc -l").Output()
if err != nil {
log.Error(err)
return c.SendStatus(fiber.StatusInternalServerError)