forked from ProjectSegfault/publapi
Merge branch 'master' of https://github.com/ProjectSegfault/publapi
Signed-off-by: Odyssey <odyssey346@disroot.org>
This commit is contained in:
commit
032e7a6f78
2
main.go
2
main.go
@ -31,7 +31,7 @@ func main() {
|
||||
})
|
||||
}
|
||||
// Get the number of users online
|
||||
out, err := exec.Command("bash", "-c", "users | wc -l").Output()
|
||||
out, err := exec.Command("/usr/bin/users | /usr/bin/wc -l").Output()
|
||||
if err != nil {
|
||||
log.Error(err)
|
||||
return c.SendStatus(fiber.StatusInternalServerError)
|
||||
|
Loading…
Reference in New Issue
Block a user